MATLAB: Reshape matrix to have the same value every 30 cells

reshape

Hi All,
I have a question: I have a matrix
A=[10; 20; 30; 40; 50; 50; 60]
How can I reshape it in order to have a matrix (7×30) X 1 such that the first 30 values are A(1), the next 30 have value of A(2), and so on…
thanks
nikolas

Best Answer

This is not a reshape it's a repmat:
repmat(A, 1, 30)