본문/내용
[9]
[프로그램]
a = [0 1 ;-1.5 -3];
b = [0 ; 1.5];
c = [0 1];
sys = ss(a,b,c,0);
impulse(sys);
[답]
[10]
[프로그램]
sys = tf(5,[2 5 10]);
sysd = c2d(sys, 0.2);
impulse(sysd)
[답]
[11]
[프로그램]
[u,t] = gensig(`pulse`,2,10,0.1);
plot(t,u);
axis([0 10 -0.5 1.5])
[답]
[12]
[프로그램]
[u,t] = gensig(`square`,4);
plot(t,u);
axis([0 20 -0.5 1.5])
[답]
[13]
[프로그램]
[u,t] = gensig(`sine`,5,10,0.01);
plot(t,u);
axis([0 10 -1 1])
[답]
[14]
[프로그램]
[u,t] = gensig(`sine`,6,12,0.01);
sys = tf([2 5 1],[1 2 3]);
y = lsim(sys, u, t);
plot(t,y,`r -`,t,u,`b : `);
grid
[답]
[15]
[프로그램]
[u, t] = gensig(`square`, 5, 10, 0.02);
g1 = tf([1 -1], [1 1 5]);
g2 = tf(5, [1 3 10]);
M = [g1;g2];
lsim(M, u, t)
[답]
[16]
[프로그램]