Title of a plot

6 visualizaciones (últimos 30 días)
Brooke
Brooke el 31 de Mzo. de 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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Mzo. de 2012
title(sprintf('Plot of ... with n=%5.15f', n));
  1 comentario
Image Analyst
Image Analyst el 31 de Mzo. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Title en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by