MATLAB: Linspace

vector

I want to create a vector which runs from 1 to 260 with increments of 360 between every whole number.
I can do this manually by: y=linspace(1,2,360); y1=linspace(2,3,360);… and so on.
By combining these I would have a vector which was 260*360=93600 long. However, there must be a easier way of doing this? preferably without a loop.

Best Answer

N = 260;
y = linspace(1,N,(N-1)*360+1);