num=1;
den1=[0.5 1 2 4 6 8];
hold;
for i=1:6
step(tf(num,[den1(i), 1]));
pause(2);
end
legend(num2str(den1(1)),num2str(den1(2)),num2str(den1(3)),num2str(den1(4)),num2str(den1(5)),num2str(den1(6)))
結果:
num=1;
den1=[0.5 1 2 4 6 8];
hold;
for i=1:6
step(tf(num,[den1(i), 1]));
pause(2);
end
legend(num2str(den1(1)),num2str(den1(2)),num2str(den1(3)),num2str(den1(4)),num2str(den1(5)),num2str(den1(6)))
結果: