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

2 ビュー (過去 30 日間)
Amarpal
Amarpal 2012 年 1 月 28 日
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

採用された回答

Walter Roberson
Walter Roberson 2012 年 1 月 28 日
title(sprintf('Comparison between numerical and analytical solution at time step = %d',time))
  1 件のコメント
Amarpal
Amarpal 2012 年 1 月 28 日
Thanks Walter. My counter's ticking like butter now :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by