How do I align my matrix elements

7 Ansichten (letzte 30 Tage)
Seonghun Yang
Seonghun Yang am 14 Mär. 2023
Greetings,
I have reinstalled my MATLAB recently, and I am having an issue with matrix output
For example, if I type below command,
y = [1:5; 11:15; 111:115]
y = 3×5
1 2 3 4 5 11 12 13 14 15 111 112 113 114 115
This is what I get in command window. Is there anyway I can align this?
It is the first time seeing this issue and I don't think I can read properly if i play with large matrices.
  2 Kommentare
Stephen23
Stephen23 am 14 Mär. 2023
Have a look at:
and the settings describes under Change Font Name and Style -> Code Tools. Use a monospaced font.
Seonghun Yang
Seonghun Yang am 17 Mär. 2023
Hey Stephen, Some magically it worked! Thanks!

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 17 Mär. 2023
This displays ok here. In your case, change the font size of the command window or use live editor that will display correctly
y = [1:5; 11:15; 111:115]
y = 3×5
1 2 3 4 5 11 12 13 14 15 111 112 113 114 115

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by