How do I add a variable date in a graphtitle?

조회 수: 2 (최근 30일)
Tessa
Tessa 2014년 12월 9일
댓글: Tessa 2014년 12월 9일
Hey,
I like to add dates in the title of my graphs. I´m creating graphs in a loop and every round I´m saving them. I have a list cell with the dates with i as indicator.
How do I make something like this? title('Wind rose',Date(i))
ps I´m also wondering if anyone knows how to change the figure name while saving (also variable but needs to be something like figure01, figure02 etc.
Thanks!

채택된 답변

Orion
Orion 2014년 12월 9일
Hi,
1) title(sprintf('Wind rose : %s',date))
2) set(gcf,'Name','My Figure 01')

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by