How to evenly generate points between given specified range in MatLab? - linspace -- MatLab

 How to evenly generate  points between given specified range in MatLab? - linspace -- MatLab


linspace command


[syntax]


linspace(starter,ender,n);

when n is not given , n == 100 by default.

[NOTE]

Although this has great similarity to ':'  , this has a little different.
linspace can guarantee the fact that ender is included.
':' can not be guaranteed.

source:


Comments

Popular posts from this blog

Built-in Script in MatLab? -- MatLab