![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/180172/image.png)
How to two Y axies plot in app designer?
1 次查看(过去 30 天)
显示 更早的评论
Now, I create App in app designer. I want draw graph-plot x, y1, y2.
How to two Y axies plot in app designer?
0 个评论
回答(1 个)
Michal Dobai
2017-12-15
You can try this:
plot(app.UIAxes,[1 2 3 4],[3 5 2 6],'-r');
hold(app.UIAxes);
plot(app.UIAxes,[1 2 3 4],[4 6 3 7],'--b');
And this is the result:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/180172/image.png)
1 个评论
Matthew Suttinger
2018-2-28
This does not answer the question asked. The example plot you show has only one y axis.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!