different colours in title MATLAB 2020B

조회 수: 9 (최근 30일)
Zayd Islam
Zayd Islam 2021년 3월 16일
댓글: Zayd Islam 2021년 3월 16일
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

채택된 답변

David K.
David K. 2021년 3월 16일
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
Zayd Islam
Zayd Islam 2021년 3월 16일
David you are a lifesaver aplogies for the pictures and not the code this was my first time asking a question

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by