How to get Command Window format for existing 'Cell Arrays'
Mostrar comentarios más antiguos
I have a Cell-array created and i want to get the command window format for that cell-array.
For example: I have created a 5x2 cell array using command line:
MyCell = {'time' , 'timestamp';'posX', {'DePositionX', 'DePositionXmm'};'posY', {'DePositionY', 'DePositionYmm'};'velocityX', 'DeVelocityX';'velocityY', 'DeVelocityY'};
Similarly I have a MxN cell array already created(not by me) and i want to get the structure of that cell in a command window format as shown in the above code. Can you tell me is there any way or commands to get this.
Thanks.
2 comentarios
Adam
el 9 de Nov. de 2016
What do you mean by "command window format"?
Just type
MyCell
is you want to view it in the command window.
Ganesh Hegade
el 9 de Nov. de 2016
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 9 de Nov. de 2016
Editada: Image Analyst
el 10 de Nov. de 2016
0 votos
Not sure what you want but perhaps the whos() function or celldisp() would be what you want.
Categorías
Más información sobre Cell Arrays 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!