Highlighted numbers in Matlab
조회 수: 3 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/discussions/uploaded_files/31316/image.png)
Highlighted numbers:
![](https://www.mathworks.com/matlabcentral/discussions/uploaded_files/31321/image.png)
댓글 수: 0
답변 (1개)
Walter Roberson
2024년 4월 30일
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
Walter Roberson
2024년 5월 1일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Function Creation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!