Subscripted assignment dimension mismatch.

maybe this is simple question , but i still can't figure out
My sst data array is 120*110,
I want to final array can be like this 120*110*10
for i=1:10
nc_sst(:,:,i)=sst;
end
error:Subscripted assignment dimension mismatch.

 채택된 답변

michael
michael 2016년 10월 3일
편집: michael 2016년 10월 3일

1 개 추천

Please do some initialization of the nc_sst
nc_sst=zeros(120,110,10)
Then it will work

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2016년 10월 3일

댓글:

2016년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by