Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to change 3D to 2D matrix for 365 data

조회 수: 2 (최근 30일)
siti bahari
siti bahari 2016년 3월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
I have 365 data (TEC1, TEC2, TEC3....TEC365) with the matrix 8x31x25. I want to change the matrix to 8x31 for all 365 data. I'm still new with matlab and with the my limited knowledge, I try to use eval.
for TEC = 1:365
varName = ['TEC' int2str(TEC)]; %# Create the name string
eval(['mean_' varName ' = squeeze (' varName (:,:,1) ');'])
end;
but it didn't work. can somebody please help me.
thank you

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by