在MATLAB中获取当前数字的标题?

dew*_*lla 10 matlab properties title figure

我有一个带有一定头衔的人物.我如何获得标题字符串?

我试过get(gcf)但我不知道如何导航到标题.

我想获得许多数字的标题,在字符串中添加更多字符并将其写回.

Chr*_*ris 21

x=0:.1:3.14;
plot(sin(x))
title('Sin(x)')

%get the title
h=get(gca,'Title');
t=get(h,'String') %t is now 'Sin(x)'

%new title
new_t=strcat(t,' Sine function')
title(new_t)
Run Code Online (Sandbox Code Playgroud)