Displaying vector coordinates in cell Array output
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ali Tevs
el 31 de Oct. de 2016
Hey gang, got a very quick question I was hoping to get advice on:
I've set up a cell array from an input .dat file to create the below.
However using the 'disp' function, the (x,y,z) coordinates are not shown, only their size and type.

Is there any modifications i can implement to my code below that will allow the same structure of output to show including the actual coordinates?
I thought about experimenting with celldisp, or trying to incorporate curly brackets which output the cell content but I end up confusing myself further.
Appreciate any advice.
Edit: Code removed to prevent from copying of homework assignment now that question has resolved
1 comentario
Respuesta aceptada
Walter Roberson
el 31 de Oct. de 2016
If you need disp() to be able to display the cell contents, then you need to make your command window wider. The maximum size of contents of a cell array entry that disp() shows depends upon the width of the command window.
You may wish to consider switching to table() data structure instead of cell array.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!