-
2 Comments
Matthew Jones
on 28 Feb 2017
Nice. What is the difference between this vector and x = linspace(1,10,10)?
MathReallyWorks
on 22 May 2017
Hello Matthew Jones,
Linspace is similar to the colon operator ":", but gives direct control over the number of points.
In x = linspace(1,10,10) you directly enter the number of points and the function generates equally spaced vector but when you use ":" operator, you need to mention step size.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!