Flipping one Y axis out of two
이전 댓글 표시
Dear All,
I have got a data set, which has one independent variable (x) and two dependent variables(y1 and y2). I want to plot the data set in one figure as given below and *finally want to flip the y axis related to y2 up side down***.
Experts please help me out
x=1:10;
y1=x.*x;
y2=5*x+3;
figure();
scatter(x,y1,50,'.','r');
hold on;
bar(x,y2,'g')
댓글 수: 1
dpb
2013년 6월 19일
Use plotyy(), saving the handles. Choose the one of choice to set the y-axis direction on.
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!