📄 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,:))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -