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

1 件のコメント

min wong
min wong 2016 年 10 月 4 日
thank u
Thanks so much for your help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops 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