Tables in Live Editor not consistent
1 回表示 (過去 30 日間)
古いコメントを表示
Hello:
I'm coding a program using the Live editor and at the end of it I had a surprise.
Along the program the tables displayed properly like the following image, using this command
array2table(ema25n)
But at the end of the script I'm getting this useless output, using the same command:
array2table(ref_n_2,"VariableNames",["N1","N2","N3","N4","N5"])
And both are generated with the same command:
array2table()
But the result is completely different.
I'm using the latest Matlab (2023b) in a MacBook Pro M1.
I restarted the program several times (I found it solves other problems like graphics in Live Editor), but it doesn't work for thi kind of problem of the output format of the tables.
0 件のコメント
回答 (2 件)
Sulaymon Eshkabilov
2023 年 12 月 15 日
Your output is correct, e.g.:
MAG5 = magic(5);
D1 = array2table(MAG5)
D2 = array2table(MAG5, 'VariableNames',["C1", "C2", "C3", "C4", "C5"])
2 件のコメント
Dyuman Joshi
2023 年 12 月 15 日
The question is not about the values but how the output is displayed. You can see the difference of how tables are displayed in the 2 images shown in the problem description.
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!