plot two graphs in real time

조회 수: 9 (최근 30일)
kheirou
kheirou 2013년 10월 6일
댓글: Ana 2015년 2월 12일
I'm tring to plot tow graphs ( data & y ) in the same figure in real time , but i don't know how to set the xdata & ydata for them , all what i know is for one graph : set(plotGraph,'XData',time,'YData',data); i want to plot both data & y in function of time
  댓글 수: 3
kheirou
kheirou 2013년 10월 6일
matlab recieve data from a PIC µc & plot it
Ana
Ana 2015년 2월 12일
Did you manage to solve this? I'm having the same problem here...

댓글을 달려면 로그인하십시오.

답변 (1개)

Ara
Ara 2013년 10월 6일
Maybe "plotyy" works for you. In this way, you have two graphs in one figure.
plotyy(time,y,time,data)
%plots "time" versus "y" with y-axis and plots "time" versus "data" with y-axis.
You can type this on Command Window to read more about.
doc plotyy
  댓글 수: 1
kheirou
kheirou 2013년 10월 6일
편집: kheirou 2013년 10월 6일
What about "set function" , how can i plot two graphs ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by