linspace
y = linspace(x1,x2)returns a row vector of ++100++ evenly spaced points between x1 and x2y = linspace(x1,x2,n)generates n points; the spacing between them is(x2-x1)/(n-1)
- Unlike the
:operator,linspacecontrols the number of points, not the step size - The result always includes end (here, x2)
- The output has length n (default 100)