MATLAB: Generating a sequence 1,2,3,4,….,n

indexMATLAB

Without using a for loop, how can I generate an index 1,2,3,…,n?

Best Answer

vector=[1:stepsize:n] if the stepsize =1 as in your case, you can disregard it
Related Question