MATLAB: Is the text in MATLAB Editor and the MATLAB Command prompt not aligned

alignmentfontMATLABmis-alignedmisalignednon-alignednonalignedpublish

When I try to list out the directory contents on MATLAB command prompt by:
dir
it gives me unaligned results.

Best Answer

Text is not aligned on MATLAB command prompt or Editor because the MATLAB fonts used are not MONOSPACED.
In order to resolve this issue, use MONOSPACED font (MATLAB default font) or any other font style that are monospaced.