필터 지우기
필터 지우기

Place several plots in perspective to show time evolution

조회 수: 12 (최근 30일)
Max Jaquenoud
Max Jaquenoud 2018년 9월 27일
답변: JohnGalt 2018년 9월 27일
I wonder if there is a method to present several plots in perspective as to show the time related evolution of some variable. I joined a picture which hopefully will make more clear what I mean by "in perspective"
Thanks for the help !

답변 (1개)

JohnGalt
JohnGalt 2018년 9월 27일
typically when I have something like this i make a 'movie' by plotting into one window and updating the plot in a for loop... e.g.
t = 0:.001:100;
x = sin(t)+t/100;
numWins = 10;
h = figure(1);
winds = floor(linspace(0,length(t),numWins+1));
winds(end) = length(t);
for i = 1:numWins
hold off;
inds = (winds(i)+1):winds(i+1);
plot(t(inds),x(inds))
title(i)
drawnow
pause(.2)
end
you could set the h.Position value to cascade the windows if you wanted to plot different windows in the arrangement of your attachment

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by