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

6 次查看(过去 30 天)
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

采纳的回答

Sourabh Kondapaka
Sourabh Kondapaka 2020-11-18
编辑:Sourabh Kondapaka 2020-11-18
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by