The linspace function creates a vector from s1 to s2 with n elements.
Return Value
rv is the a linearly spaced vector.
Parameters
s1 is the start value
s2 is the end value
n is the number of elements (Default is 100).
Comment
linspace generates linearly spaced vectors. It is similar to the colon operator ":", but gives direct control over the number of points.
Example
x = linspace(0, 2*PI)
y = sin(x)
plot(x, y)
See also
id-791325