why it will go wrong using 'cell'?
Mostrar comentarios más antiguos
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 comentarios
The difference is the space allocated for each.
a={[],[]};
b=cell(1,2);
whos a b
warnerchang
el 31 de Mzo. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!