In MATLAB, linspace
can be used to generate a vector of a specified number of equally spaced values between two numbers.
To generate five equally spaced values between 3 and 5, linspace(3, 5, 5)
can be used.
main.m78 chars4 lines
Here, the first argument 3
is the starting number, the second argument 5
is the ending number and the third argument 5
is the number of equally spaced values to be generated between the two specified numbers.
gistlibby LogSnag