Variable editor shows no table, but just "val=" and values in text format on white background

18 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

采纳的回答

Kary Martin
Kary Martin 2019-2-7
编辑:Kary Martin 2019-2-7
I am having the same issue. I also have 2016a installed and can confirm that variables open just fine there. I just noticed this today. This was not happening before on 2018b.
Try this, it worked for me:

更多回答(3 个)

Jo Tober
Jo Tober 2019-2-5
Anyone, please? Problem is still not soved.
I asked lots of Matlab-users, but nobody knows this problem.

Jo Tober
Jo Tober 2019-2-7
Are you kidding me? Why do I get the "please vote for helpful answers"-Mail, when there are no answers?

Michael Ladegaard
Michael Ladegaard 2021-10-13
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.

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by