?? example54_test1.m
字號:
%Hf4_test1
%==============
%==============
%to see the input/output
figure('name','任一隨機輸入矢量的收斂過程','numbertitle','off');
T=[+1 +1;
-1 +1;
-1 -1];
plot3(T(1,:),T(2,:),T(3,:),'r*')
axis([-1 1 -1 1 -1 1])
alabel('a(1)','a(2)','Hopfield Network State Space','a(3)')
set(gca,'box','on')
view([37.5 30])
%simulate the network...
A=simuhop(T,W,B)
%simulate the network again...
a=rands(3,1);
max_epoch=str2num(max_epoch);
[a,aa]=simuhop(a,W,B,max_epoch);
hold on
plot3(aa(1,1),aa(2,1),a(3,1),'wx',aa(1,:),aa(2,:),aa(3,:))
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -