Subscripted assignment dimension mismatch.

3 ビュー (過去 30 日間)
min wong
min wong 2016 年 10 月 3 日
コメント済み: min wong 2016 年 10 月 4 日
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
  1 件のコメント
min wong
min wong 2016 年 10 月 4 日
thank u
Thanks so much for your help.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by