plot two graphs in real time

10 Ansichten (letzte 30 Tage)
kheirou
kheirou am 6 Okt. 2013
Kommentiert: Ana am 12 Feb. 2015
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 Kommentare
kheirou
kheirou am 6 Okt. 2013
matlab recieve data from a PIC µc & plot it
Ana
Ana am 12 Feb. 2015
Did you manage to solve this? I'm having the same problem here...

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Ara
Ara am 6 Okt. 2013
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 Kommentar
kheirou
kheirou am 6 Okt. 2013
Bearbeitet: kheirou am 6 Okt. 2013
What about "set function" , how can i plot two graphs ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by