Title of a plot

1 次查看(过去 30 天)
Brooke
Brooke 2012-3-31
I would like the title of my plot to be user-defined:
So something like: n = input('n: ') title('Plot of ... with n=%5.15f', n)
But this suggested code doesn't work, could someone suggest a command that works? Thank you.

采纳的回答

Walter Roberson
Walter Roberson 2012-3-31
title(sprintf('Plot of ... with n=%5.15f', n));
  1 个评论
Image Analyst
Image Analyst 2012-3-31
A useful option of title is the ability to set the size of the font:
title(caption, 'FontSize', 30); % or whatever size you want.

请先登录,再进行评论。

更多回答(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