You can create a column vector with these specifications using the "colon operator" in MATLAB.
Here's the code to create the column vector:
main.m38 chars3 lines
Explanation:
10:-0.2:1
expression creates a vector that starts at 10, decrements by 0.2, and ends at 1.'
transpose operator is used to convert the resulting row vector into a column vector.The resulting column vector will be:
main.m25 chars7 lines
Note: The vector'
statement is optional if you specifically need a column vector. If you can work with a row vector, you can omit it.
gistlibby LogSnag