David
Farruggio

MathGenie

linspace

Generate linearly spaced vector

Syntax and Description

linspace(x1,x2) returns a row vector of 100 evenly spaced points between x1 and x2.
linspace(x1,x2,n) generates n points. The spacing between the points is (x2-x1)/(n-1).

Back to functions