MATLAB: Matlab vector and arrays

homeworkMATLABschool

How to Use the operator ‘:’ (colon) to create vectors of number series from 1 to 20 stored to variable X and number series of 10 to 25 stored to variable Y.

Best Answer

You can use directly colon (:) operator.
X=1:20
Y=10:25
For more info: