Variable editor shows no table, but just "val=" and values in text format on white background
이전 댓글 표시
Hi,
Matlab 2018 suddenly doesn't show my variables as table of values any more, but just "var =" and then all the content of the matrix as text on white background. (Same for struct variables.)
How can I change this back?
(I searched extensively in Matlab help, Matlab preferences and on the Internet, without any sucess. Variable preferences are greyed out...)
(What did not help: Restarting Matlab, clear all, opening variables by doubleclick from workspace vs. by rightclick...)
Thanks.


댓글 수: 3
John McDowell
2020년 1월 8일
Hi there, I'm having the same issue - did you ever work out the reason?
I use the same process to create two tables based on arbitrary input data. One of the tables is created properly, while the other appears as a table variable but cannot be interrogated, just appears as val = ...x,y,z etc
I suspect it must be to do with an erroneous data point, one that the table variable type cannot accept, and therefore it gets converted to this odd format.
Jo Tober
2020년 1월 8일
John McDowell
2020년 1월 8일
Hi Jo,
Thanks for getting back so quick - alas this didn't work for me, but I will keep looking.
Cheers,
John
채택된 답변
추가 답변 (3개)
Michael Ladegaard
2021년 10월 13일
0 개 추천
I also ended up with a table that was shown as "val=" like in the screenshot above.
This happened after I used indexing to insert values from a smaller table into a larger table. Because one of the columens in the smaller table contained just empty values (i.e. [ ] ), and because I used { } during my indexing into the new table, I ended up with a column in the larger table, where each element contained elements of the type {0×0 double}. This led the new table to be displayed as described above with "val=" on white background. When I replaced all these values with a column of NaN values, then the table was displayed in the usual manner again.
This doesn't seem to be the problem in the specific case, but hopefully it may help others who come by this thread with similar isssues.
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!