Hello, i need codes that breaks my column of data (say 1x737) into 30x24. How would i do that? Thank you.

1 次查看(过去 30 天)
for example, 1x737 double
i. e. , A=1:2:738;
how would i convert it to 30x24 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.

采纳的回答

Walter Roberson
Walter Roberson 2019-3-20
new_A = reshape(A(1:30*24), 30, 24);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by