2y axis in appdesigner

64 Ansichten (letzte 30 Tage)
Mirek Janda
Mirek Janda am 5 Apr. 2018
Kommentiert: Jiri Junek am 13 Okt. 2022
Is it possible to plot 2 y axis in the appdesigner? It is similar to plotyy in the regular figure. They you can assign the plotting axis yyaxis left/right;

Akzeptierte Antwort

Mirek Janda
Mirek Janda am 5 Apr. 2018
Bearbeitet: Mirek Janda am 11 Apr. 2018
Easy solution
yyaxis(app.UIAxes,'left')
plot(app.UIAxes,xdata,ydata);
yyaxis(app.UIAxes,'right')
plot(app.UIAxes,xdata,y2data);
  4 Kommentare
Andrew Davies
Andrew Davies am 17 Okt. 2019
this hangs in R2019b on exit or sometimes when the UI elements are changed. Worked finein 2019a.
Jiri Junek
Jiri Junek am 13 Okt. 2022
Works on 2022b.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Iurii Medvedev
Iurii Medvedev am 9 Jan. 2019
Help me please.
How to use different grids for different axes?

Kategorien

Mehr zu Specifying Target for Graphics Output finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by