⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example53_test.m

📁 是一个用MATLAB编的一个系统
💻 M
字号:
%hf3_test
%==============
%==============
figure('name','观察网络的不稳定平衡点','numbertitle','off');

%define the problem...
clc
T=[+1 -1;
   -1 +1];

%design the network...
[W,B]=solvehop(T);


%strike ang key to simulate the network some more...
clc
hold on
color='rgbmy';   
for i=1:25
   a=rands(2,1);
   [a,a1]=simuhop(a,W,B,20);
   plot(a1(1,1),a1(2,1),'b+',a1(1,:),a1(2,:),color(rem(i,5)+1))   
end

%to observe other point

figure;
axis([-2 2 -2 2])
 P=[-1 -0.5 0 0.5 1.0;
     -1 -0.5 0 0.5 1.0];
axis([-2 2 -2 2]);
plot(P(1,:),P(2,:),'r+');



for k=1:5
    disp('Hit<RETURN>to see the output after one cycle.');
    pause,disp('')
    AA=simuhop(P,W,B,k);
    k
    fprintf('Output Vectors:')
    AA
    plot(AA(1,:),AA(2,:),'ko'),axis([-1 1 -1 1]);

end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -