?? example53_test.m
字號:
%hf3_test
%==============
%==============
figure('name','觀察網(wǎng)絡(luò)的不穩(wěn)定平衡點(diǎn)','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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -