MATLAB: Hello, i need codes that breaks the column of data (say 1×737) into 30×24. How would i do that? Thank you.

codeMATLAB

for example, 1×737 double
i. e. , A=1:2:738;
how would i convert it to 30×24 double?
%this is because I've hourly data of one month which is in one single column. Now i need it in daily. Your help will be a great success. thank you.

Best Answer

new_A = reshape(A(1:30*24), 30, 24);