Subscripted assignment dimension mismatch
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, I'm trying to do the following assignment and get an error: "Subscripted assignment dimension mismatch" "masking" is new veriable and this is the first assignment to it. "indx" is as follow: 300x10x2011 logical
masking(:,:,1)=indx;
what is wrong?
0 件のコメント
採用された回答
KL
2017 年 11 月 25 日
You're trying to assign a 3D matrix into a 2D one. Try,
masking(:,:,:,1) = indx;
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Author Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!