why it will go wrong using 'cell'?
Afficher commentaires plus anciens
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 commentaires
The difference is the space allocated for each.
a={[],[]};
b=cell(1,2);
whos a b
warnerchang
le 31 Mar 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!