フィルターのクリア

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 Center および File ExchangeTitle についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by