Plot multiple data sets in the same chart in which one set is plotted on another axes

조회 수: 1 (최근 30일)
Hi, I would like to know how to plot multiple sets of data in the same chart with only one set of data is plotted on another axes. For example I have A = x1,y1 B = x1,y2 C = x1,y3 I knew that I can use hold on to plot 3 sets in the same chart by hold(figure,'on'); plot(A) plot(B) plot(C)
I also knew that I can use plotyy(A,B) to have A on one axes and B on another axes. But I don't know how to do that with more than 2 set of data.
Thank you for your time reading and answering my question!

답변 (1개)

Kostas
Kostas 2012년 1월 26일
Maybe this function from file exchange could help you http://www.mathworks.com/matlabcentral/fileexchange/1017-plotyyy
  댓글 수: 1
Thang Nguyen
Thang Nguyen 2012년 1월 29일
Hi,
I am sorry that this file didn't help me. This function plots separate data on separated axes which will not help me understand how to split only one data set out of other data.
Thank you anyway!

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

카테고리

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