Draw arrows in UIAxes diagrams in APP Designer

I find this Display Graphics in App Designer - MATLAB & Simulink - MathWorks Deutschland and tried it as below with annotation:
Up_x = [0 5];
Up_y = [0 0];
annotation(app.ElectricMachineInfo_UIAxes3,'arrow', Up_x,Up_y);
but it dosent work :D
Can someone help me to drow Arrows in a UI Axes Diagrams to present it in the App designer environment
I use Matlab 2020b.

1 Kommentar

Hunk Huang
Hunk Huang am 21 Feb. 2022
Bearbeitet: Hunk Huang am 21 Feb. 2022
quiver(app.UIAxes,0,0,2,0,'b','filled','LineWidth',1)

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Nitin Kapgate
Nitin Kapgate am 12 Feb. 2021

0 Stimmen

While using the annotation function in App Designer, the First argument (i.e. container) must be a valid annotation type or a handle to a figure, uipanel, or uitab. It can't be a handle to an UIAxes.

4 Kommentare

yes that ist sadly true, i noticed it too.
I search a alternative methode to realysat Arrows in a UI Axes Diagrams to present it in the App designer environment
Do you have any idea?
chichi
chichi am 7 Mär. 2021
sorry.Can you tell me the alternative method please? I have tried to plot arrows in UIAxes but it didn't work.
Marco Degano
Marco Degano am 24 Mär. 2021
Bearbeitet: Marco Degano am 24 Mär. 2021
I think I found the solution, try this:
annotation(app.UIFigure,'arrow',[x0 x1],[y0 y1]);
But I can not plot over UIAxes, it goes behind and gets hidden.
Hunk Huang
Hunk Huang am 21 Feb. 2022
Bearbeitet: Hunk Huang am 21 Feb. 2022
quiver(app.UIAxes,0,0,2,0,'b','filled','LineWidth',1)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 9 Feb. 2021

Bearbeitet:

am 21 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by