How can I remove commas in columns number in the command line?

6 vues (au cours des 30 derniers jours)
Alberto Lutman
Alberto Lutman le 12 Nov 2020
Commenté : Alberto Lutman le 20 Nov 2020
When displaying a row vector in the Matlab Command window, the column numbers larger than 1000 present now a comma making reading difficult, looking either like a couple or as decimal part of the number (in all countries using , for it instead of .).
How can those commas be removed? A sample of code generating the output is:
a=rand(1,1024)
Columns 982 through 990
0.2933 0.0516 0.5041 0.7684 0.2830 0.2254 0.3313 0.4533 0.7374
Columns 991 through 999
0.5099 0.3825 0.9055 0.9653 0.6283 0.1320 0.6183 0.3830 0.9912
Columns 1,000 through 1,008
0.2868 0.7062 0.5352 0.1932 0.6894 0.0505 0.1844 0.0457 0.8850
Columns 1,009 through 1,017
0.8398 0.1182 0.4104 0.1202 0.5721 0.9494 0.2564 0.9899 0.3498
Columns 1,018 through 1,024
0.2085 0.6658 0.9733 0.6227 0.0635 0.3735 0.1663
I want to display 1024 instead of 1,024
  1 commentaire
Setsuna Yuuki.
Setsuna Yuuki. le 13 Nov 2020
My matlab version is the R2020a and i don't find a option to change the point

Connectez-vous pour commenter.

Réponse acceptée

Sourabh Kondapaka
Sourabh Kondapaka le 18 Nov 2020
Modifié(e) : Sourabh Kondapaka le 18 Nov 2020
I'm afraid it can't be changed and its dependent on the Operating System. If you would want to explore other formatting options for the command window in matlab please refer this link1, link2 and link3
  1 commentaire
Alberto Lutman
Alberto Lutman le 20 Nov 2020
It would be nice to ad an option to control the behavior in the next release then.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by