how can I display values of variables which changes wrt time in figure.

조회 수: 1 (최근 30일)
pratik kadam
pratik kadam 2015년 4월 3일
답변: Mahdiyar 2015년 4월 3일
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

답변 (1개)

Mahdiyar
Mahdiyar 2015년 4월 3일
Hi kadam
Why you do not save the values if you need to monitor those values?

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by