How to fix table display/alignment in command window
23 views (last 30 days)
Show older comments
Jim Hokanson
on 20 Mar 2024
Answered: Jim Hokanson
on 20 Mar 2024
MATLAB seems to format printing of tables poorly on macs.
Here's a simple example using 2023b on my M1 mac:
dt = datetime('now');
dt2 = datetime('now');
test = "test";
t = table(dt,dt2,test)
The result looks like this. Note the poor column alignment. Also if you try and select the column names the text bolding disappears and the letters shift slightly, especially ones further to the right (hard to see in this example, but noticeable with longer tables).
In contrast this is what it looks like on Windows, nice and aligned!
Is there a setting to toggle to fix this? If not any chance this can get fixed before the official 2024a release (haven't tried the prerelease). I'll note I upgraded to 2023b from 2022a? or some older version to see if that fixed the problem (above example is from 2023b so the newer version did not fix the problem).
2 Comments
Steven Lord
on 20 Mar 2024
What font are you using for Command Window? Follow the instructions on this documentation page to determine which font you're using.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!