Subscripted assignment dimension mismatch.

1 次查看(过去 30 天)
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
Please do some initialization of the nc_sst
nc_sst=zeros(120,110,10)
Then it will work

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by