Suptitle - is it possible to use with arguments besides text?

2 次查看(过去 30 天)
for example - I want my super title to display the value of my variable "num".
I coded this:
suptitle('my number=%u',num)
and got the error message:
Error using suptitle Too many input arguments.
Can I make it somehow?
Thanks, Shir

采纳的回答

michio
michio 2016-9-1
suptitle accepts one input argument, so try
suptitle(['my number= ',num2str(num)])

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by