필터 지우기
필터 지우기

Hello, I am developing one GUI in which, I want to plot 4 graphs on the same axes. Can anyone suggest me to get solution on this problem? Thanks...!

조회 수: 1 (최근 30일)
S=[0; 0; 0; ];
I=[1; 2; 3;];
plot(handles.plotAxes,S,I);
hold(handles.plotAxes,'on');
X11=[0; 2; 3; 4];
Y11=[0; 1; 2; 3;];
plot(handles.plotAxes,X11,Y11);
hold(handles.plotAxes,'on');X22=[0; 1; 3; 5;];
Y22=[0; 1; 2; 3;];
plot(handles.plotAxes,X22,Y22);
hold(handles.plotAxes,'on');
I am getting only the first plot and not getting next plot on the same axes.

채택된 답변

Stephen23
Stephen23 2017년 1월 21일
편집: Stephen23 2017년 1월 21일
plot(handles.plotAxes, S,I, X11,Y11, X22,Y22);
or
plot(handles.plotAxes, [S,X11,X22],[I,Y11,Y22])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by