how can I display values of variables which changes wrt time in figure.
2 次查看(过去 30 天)
显示 更早的评论
I'm using pause cmd to display dyanamics in figure... but i'm unable to display values of variables which i'm plotting..
code:
clc;clear all;close all; sym x; f=x.^2; tt=linspace(0,10); for i=2:length(tt) p=tt(1,1:i); plot(p,f(p)); h=plot(p(1,end),f(p(1,end)),'ro'); pause(.1); delete(h); end
%%% i would like to display values in following manner %%% variable value=2 %%% function value=4
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!