LINSPACE Linearly Spaced Vector
Section: Array Generation and Manipulations
Usage
Generates a row vector with the specified number of elements, with
entries uniformly spaced between two specified endpoints. The syntax
for its use is either
y = linspace(a,b,count)
or, for a default count = 100
,
y = linspace(a,b);
Examples
Here is a simple example of using linspace
--> x = linspace(0,1,5)
x =
<double> - size: [1 5]
Columns 1 to 5
0.00 0.25 0.50 0.75 1.00