
Gregg O. answered 03/10/16
Tutor
5.0
(366)
Engineering Valedictorian Available for Math Tutoring
In MATLAB, a row vector can be created using the following format:
(vector name) = (starting value):(step size):(end value)
Ts = 1e-2; assigns the value .01 to the variable Ts.
t2=0:Ts:20; creates a vector with starting value 0, step size .01, and end value 20. This would be
[0, .01, .02, ... 19.98, 19.98, 20].