why it will go wrong using 'cell'?
古いコメントを表示
Recently, I ran two codes as follow:
a={[],[]};a{1}(a{1}==3)=[];
% it will go wrong
b=cell(1,2);b{1}(b{1}==3)=[];
2 件のコメント
The difference is the space allocated for each.
a={[],[]};
b=cell(1,2);
whos a b
warnerchang
2022 年 3 月 31 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!