MATLAB Graphs (Arbitrary X-Axis)
이전 댓글 표시
Hello
I have two formulas as a function of y
Eo = 3.391 - 1.652.*y + 0.863.*y.^2-0.123.*y.^3 ;
Eg= 1.35-0.72*y+0.12*y.^2 ;
I plot two equations by varying
y= 0 : 0.01 : 0.8 ;
than plot (Eo,Eg) , which looks like the attached figure.
My question is: Can I put y at top x-axis ?
I want to put the values of y at top x-axis and dont want to plot any function against y.
Thanks in advance.

댓글 수: 2
Walter Roberson
2015년 12월 9일
Would the result have no labels on the left or right side, and would continue to have the 0.85 to 1.35 labels on the bottom, but as well on the top would have labels 2.5 to 3.4 ? And it would have no line drawn because you do not want to plot any function against y??
Abi Waqas
2015년 12월 9일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
