Highlighted numbers in Matlab
Show older comments
Hello :), I am new in Matlab, and I'd like to know if there is a way to highlight numbers so that it can be easily differentiated from the rest of the characters.
I am referring to this:
Numbers in Matlab:
Highlighted numbers:
Answers (1)
Walter Roberson
on 30 Apr 2024
1 vote
For output to the command window, see https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-colored-text-in-command-window
This does not work for LiveScript.
This does not work for storing into a file.
2 Comments
Santiago
on 30 Apr 2024
Walter Roberson
on 1 May 2024
It is not supported in LiveScript fixed text.
It is not possible in LiveScript output.
... The difference between these two statements is that colorizing fixed text might not be available yet but is something that would be relatively simple for Mathworks to add, whereas supporting colorization in output would take a fair bit more work on the part of Mathworks.
Categories
Find more on Entering Commands 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!