blob: 137d7698ced70f04d55d3bbf21a99f7c25652c75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
s=%s; // first create a variable
num=10;
den=10+2*s+s^2;
TF=syslin('c',num,den)
t=linspace(0,5,500);
step_res=csim('step',t,TF);
plot(t,step_res)
xgrid()
xtitle('Step response','time','response');
|