필터 지우기
필터 지우기

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);
  댓글 수: 2
Yonten Dubjur
Yonten Dubjur 2019년 3월 21일
@Walter Roberson, thank you so much. It did work ☺. And, out of 737 data, (24x30 =720) 720 data are created in new matrix, (new_A). How would i take rest 17 data? It'll be a great help. Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (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