different colours in title MATLAB 2020B

1 Ansicht (letzte 30 Tage)
Zayd Islam
Zayd Islam am 16 Mär. 2021
Kommentiert: Zayd Islam am 16 Mär. 2021
how can i get the colours in my title to be those stated colours so the text 'Green/Healthy' in the actual colour green.
Thank You

Akzeptierte Antwort

David K.
David K. am 16 Mär. 2021
The Add Title page has the answer to this.
strcat(['\color{green}Green/Healthy= ',num2str(Healthy),',\color{orange}/Infected= ',...
num2str(Infected),', \color{red}Red/Sick= ',num2str(Sick),', \color{blue}Blue/Recovered= ',...
num2str(Recovered)])
Please use the code entering functionality. The image makes it a lot harder for us than it needs to be.
  1 Kommentar
Zayd Islam
Zayd Islam am 16 Mär. 2021
David you are a lifesaver aplogies for the pictures and not the code this was my first time asking a question

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by