change color of words in matlab figure text

91 次查看(过去 30 天)
Hello everyone,
I have a matlab figure... is it possible to make a textbox with different colors for each word?
Thanks in advance
  1 个评论
Maurilio Matracia
Maurilio Matracia 2022-9-29
Hi everyone, I found out that using something like '\color[rgb]{0,.447,.741}text1 \color[rgb]{1,0,0}text2' solves the problem.
However, this works only on the tex interpreter, does anyone know how to make it work with latex interpreter?

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2022-2-23
编辑:KSSV 2022-2-23
Two options:
  1. USe GUI (matlab's figure) . Go to edit, insert text box, add the word, change the font color and size etc.
  2. Read about the function text.
  2 个评论
Maurilio Matracia
Maurilio Matracia 2022-2-23
Thank you.
However, I think that will only allow to change the entire text.
What I am asking for is to get a text with different colors for each word.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by