plot two graphs in real time
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
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
参考
カテゴリ
Help Center および File Exchange で Two y-axis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!