Including runtime based values in the title of a 2D plot
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Walter Roberson
2012-1-28
title(sprintf('Comparison between numerical and analytical solution at time step = %d',time))
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!