code syntax question from example code

s=poly(0,'s');rand('seed',0);w=ssrand(1,1,3);w('A')=w('A')-2*eye(); t=0:0.05:5; //impulse(w) = step (s * w) clf(0);xset("window",0);show_window(); plot2d([t',t'],[(csim('step',t,tf2ss(s)*w))',0*t'])

The above code is from csim example code.

Question 1: in the above code t is defined, yet in plot2d t' is used. What does t' mean/represent?

Question 2: the 0*t' item to me means 0 (algebraically), what is the real meaning here?

Scilab 23-02-18, 9:28 p.m. maxcy



t' is the transpose of t. 0*t' is multiplying every element of t with 0. I would recommend looking up matrix operations to understand similar code.

23-02-18, 9:51 p.m. shamika


It would seem simpler to make a zero array and transpose it.

23-02-18, 10:42 p.m. maxcy

Log-in to answer to this question.