how to highlight some lines in the mfile?
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lily
el 16 de Mayo de 2015
Editada: Mohamed Elshami
el 13 de Feb. de 2024
Is there any way to highlight lines or make some lines in different colors ?
0 comentarios
Respuesta aceptada
Walter Roberson
el 16 de Mayo de 2015
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 comentarios
Más respuestas (1)
Armin Mashhadi
el 24 de En. de 2019
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 comentario
Mohamed Elshami
el 13 de Feb. de 2024
Editada: Mohamed Elshami
el 13 de Feb. de 2024
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.
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!