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

조회 수: 3 (최근 30일)
Alberto Lutman
Alberto Lutman 2020년 11월 12일
댓글: Alberto Lutman 2020년 11월 20일
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
Setsuna Yuuki.
Setsuna Yuuki. 2020년 11월 13일
My matlab version is the R2020a and i don't find a option to change the point

댓글을 달려면 로그인하십시오.

채택된 답변

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
  댓글 수: 1
Alberto Lutman
Alberto Lutman 2020년 11월 20일
It would be nice to ad an option to control the behavior in the next release then.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by