I currently have a column vector of any length and I want to insert another column vector of length 5 at various points of the original array. i.e. I want to add my new array to the start of the old array skip say 10 places add my new array again, skip 10 spaces again and add my new array again and so on till the end of the array. I can do this by using:
OffsetSign = [1:30]'; Extra = [0;0;0;0;0]; OffsetSign =[Extra;OffsetSign(1:10);Extra;OffsetSign(11:20);Extra;OffsetSign(21:30)];
However this is not suitable for longer arrays. Any tips on an easy way to do this for longer arrays?