How to plot a single point depending on three variables in a 2d figure?

조회 수: 3 (최근 30일)
Federico
Federico 2011년 12월 27일
I would like plot a single point associated to three values of three variables. I would assign each variable to a 2D plot having axes: x (bottom) "first variable", y1 (left side) "second variable" and y2 (right side) "third variable".
The result should be just a single point in a 2D figure having one x axis and two y axes with well suited scales to display the right value for the point.
How can I do this figure with Matlab?
Thank you very much!

답변 (2개)

Aurelien Queffurust
Aurelien Queffurust 2011년 12월 27일
  댓글 수: 1
Federico
Federico 2011년 12월 28일
Hi Aurelien,
I have used plotyy before but it seems to not be able to assign the right scale to the second y axis.
e.g.
y1=2x
y2=x^2
x=3
If I use plotyy with those variable I find TWO points in the figure: one for (x=3,y1=6) and one for (x=3,y2=9). I want to see just one point (x=3) having y1=6 and y2=9 coincident coordinates.
How can I do this with plotyy?
Thanks.

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


Walter Roberson
Walter Roberson 2011년 12월 28일

카테고리

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