Title of a plot

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 日

1 投票

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 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by