Very basic problem problem, is there a quicker, neater way of doing the below:
m=13:21for o=0:61; p=m+(11*o); eval(sprintf('p%d=p',o)); end n=[p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10... p61]
Want to produce a variable 'n' consisting of values 13-21, 24-32, etc til 684-692. (So 9 numbers, miss 2, next 9 numbers..). Output needs to be as one row so 'n' can be used for another for loop.
Aware this will be ridiculously simple but new to matlab.
Thanks
Best Answer