Linspace

Parent Previous Next

Linspace


Generate linearly spaced vector



Syntax


linspace(a, b)

a and b are real scalars

Return a row 50-elements vector in which the elements are evenly distributed between a and b.

linspace(a, b, n)

a and b are real scalars

n is a positive integer

Return a row n-elements vector in which the elements are evenly distributed between a and b.


Examples


Input

Output

linspace(0, PI)

linspace(0, 5, 6)


See Also


Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator