필터 지우기
필터 지우기

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 CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by