how to highlight some lines in the mfile?

조회 수: 14 (최근 30일)
Lily
Lily 2015년 5월 16일
편집: Mohamed Elshami 2024년 2월 13일
Is there any way to highlight lines or make some lines in different colors ?

채택된 답변

Walter Roberson
Walter Roberson 2015년 5월 16일
No. But possibly you might be interested in using the publish feature, especially if you included some HTML markup that inserted elements in a different color. Or perhaps just using "*TEXT*" to highlight the given text in the published document.

추가 답변 (1개)

Armin Mashhadi
Armin Mashhadi 2019년 1월 24일
Of course there is , this way you can change color of lines:
plot(x,y,'sign');
color sign
blue b
red r
black k
...
  댓글 수: 1
Mohamed Elshami
Mohamed Elshami 2024년 2월 13일
편집: Mohamed Elshami 2024년 2월 13일
I think he is talking about coding lines not the line of a plot. He may want to distinct some important code in his m-file.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by