Tuesday, October 18, 2016

MATLAB: Create a Vector of Evenly Spaced Points in a Interval

Command:

Trial>> y1 = linspace(-5,5,7)  


Result:

y1 =

   -5.0000   -3.3333   -1.6667         0    1.6667    3.3333    5.0000