The number of columns displayed seems to be related to the window size: Number of displayed columns is number of columns fitting into the window, rounded up to the next multiple of 8. Didn't find out how to trigger display of all columns, though.
How do I display more than 16 columns of a cell array?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
J S
el 7 de Jun. de 2016
Comentada: Pankaj Chauhan
el 22 de En. de 2018
I have an 11x65 cell array. If I open it in variable window, only 16 of the 65 columns are displayed. I found no option to change max number of cols. I found the problem in 2015a and 2016a. In 2012b, however, all 65 columns are shown. The problem does not occur with structs.
EDIT: Things are starting to get creepy: Today a big array (40000x65) first showed 24 columns, and then all the other columns as well. I don't know how to reproduce when it works and when it does not. Today, 2 large tables were also open in the variable window. Perhaps that's the motivation for MATLAB to also show the ramaining cell columns. Or maybe there is a connection to free RAM?
4 comentarios
Walter Roberson
el 15 de Jul. de 2016
"number of columns fitting into the window" would depend upon the Workspace variables formatting preference or the formatting setting chosen for the variable in View -- but it doesn't.
I do agree, though, that it has something to do with the window width at the time you ask to view the variable, such as with openvar(). Windows below a certain width result in 16 columns being displayed; above the minimum width and up to some other width it is 24 columns; at some relatively wide point it gets to 32 columns. Possibly if someone were using a monitor wider than mine more columns could be reached.
Respuesta aceptada
James Cheong
el 20 de Jul. de 2016
Editada: Walter Roberson
el 7 de Sept. de 2016
Hi there
I had the same problem as well after upgrading to R2016a but there's a MATLAB bug fix.
Search for the following Bug ID number: 1350885 http://www.mathworks.com/support/bugreports/details/1350885?partial=collapsed&selected_products=103&selected_release=264&shipped_release_ids%5B%5D=264
Hope that helps.
:)
2 comentarios
Ver también
Categorías
Más información sobre Data Type Conversion en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!