How to see aligned results on command window?

After running a code, results appear in a matrix form. The results are correct however reading them is a little tedious as the numbers in columns of matrix are not aligned.
Kindly, have a look at the screenshot.I am using MATLAB Version: 9.8.0.1323502 (R2020a).

4 Comments

Aligning columns is easist using a monospaced font.
You appear to be using a proprtional font. Is that intentional?
yeap , solution # 1 is using monospaced font
alternative 2 : use some functions that have been created to get a nicer table looking display :
* look at prin that belongs to this excellent package : plt - File Exchange - MATLAB Central (mathworks.com)
* and print_table in attachment (zip)
some demos are in the zip attached
Thank you so much, dear Stephen23 and Mathieu NOE. Your answers solved the issue.

Sign in to comment.

Answers (0)

Tags

Asked:

on 22 May 2023

Commented:

on 23 May 2023

Community Treasure Hunt

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

Start Hunting!