how to highlight some lines in the mfile?
35 次查看(过去 30 天)
显示 更早的评论
Is there any way to highlight lines or make some lines in different colors ?
0 个评论
采纳的回答
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.
0 个评论
更多回答(1 个)
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
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 Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!