Tables in Live Editor not consistent
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Sulaymon Eshkabilov
il 15 Dic 2023
Your output is correct, e.g.:
MAG5 = magic(5);
D1 = array2table(MAG5)
D2 = array2table(MAG5, 'VariableNames',["C1", "C2", "C3", "C4", "C5"])
2 Commenti
Dyuman Joshi
il 15 Dic 2023
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.
Vedere anche
Categorie
Scopri di più su Environment and Settings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!