Effacer les filtres
Effacer les filtres

Title of a plot

1 vue (au cours des 30 derniers jours)
Brooke
Brooke le 31 Mar 2012
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.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by