How to Cell indexing
Mostrar comentarios más antiguos
X1=11;
X2=22;
u{1}=[X1,X2];
>> u{1}
ans =
11 22
How to index 'one' element(ex: '11' or '22')
1 comentario
Stephen23
el 13 de Sept. de 2021
@dmfwlansejr: Do you have a reason for storing a numeric vector inside a scalar cell array?
Respuesta aceptada
Más respuestas (1)
X1=11;
X2=22;
u{1}=[X1,X2];
u{1}
% To access "one" element
u{1}(1)
u{1}(2)
Categorías
Más información sobre Creating and Concatenating Matrices 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!