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);
Here is a simple example of using linspace
--> x = linspace(0,1,5)
x =
<double> - size: [1 5]
Columns 1 to 2
0.000000000000000 0.250000000000000
Columns 3 to 4
0.500000000000000 0.750000000000000
Columns 5 to 5
1.000000000000000