Effacer les filtres
Effacer les filtres

Including runtime based values in the title of a 2D plot

2 vues (au cours des 30 derniers jours)
Amarpal
Amarpal le 28 Jan 2012
Hello!
I'm writing a post-processor. This is basically making 2D plots in a sequence by updating them in every iteration to show the evolution in time. Apart from the static title on the figure window, I also want the time iteration number to get displayed. Is there a way I can do this? Like for e.g.: title('Comparison between numerical and analytical solution at time step = %d',time).
Kindly advice.
Regards

Réponse acceptée

Walter Roberson
Walter Roberson le 28 Jan 2012
title(sprintf('Comparison between numerical and analytical solution at time step = %d',time))
  1 commentaire
Amarpal
Amarpal le 28 Jan 2012
Thanks Walter. My counter's ticking like butter now :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by