why it will go wrong using 'cell'?
Show older comments
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 Comments
The difference is the space allocated for each.
a={[],[]};
b=cell(1,2);
whos a b
warnerchang
on 31 Mar 2022
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!