MATLAB: Expand Array

matrix array

I have an array [1,2,3,4] i want to have an array that is 1 2 3 4 1 2 3 4 1 2 3 4 and so on. so pretty much an array with columns with the same number but rows a different number

Best Answer

>> doc repmat