why it will go wrong using 'cell'?
Ältere Kommentare anzeigen
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 Kommentare
The difference is the space allocated for each.
a={[],[]};
b=cell(1,2);
whos a b
warnerchang
am 31 Mär. 2022
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!