0
csim coding question

t=0:0.05:5; s=poly(0,'s');tf=(s+1)/((s-1)*(s+2)*(s+3)) clf(0);xset("window",0);show_window(); plot2d([t',t'],[(csim('step',t,tf2ss(tf)),0*t')])

I would like to see a step response of the above tf so I'm applying csim step to the tf but I am doing something wrong here. What do I need to do to fix the code to get the step response working.


Scilab 01-03-18, 3:12 a.m. maxcy

Answers:

0

t=0:0.05:5; s=poly(0,'s'); tf=(s+1)/((s-1)*(s+2)*(s+3)) clf(0); xset("window",0); show_window(); plot2d([t',t'],[csim('step',t,tf2ss(tf))',0*t'])

correction, this is the code that I actually used in the cloud after some fooling around and this seems to work!

01-03-18, 10:51 a.m. maxcy


Log-in to answer to this question.