Draw arrows in UIAxes diagrams in APP Designer

조회 수: 43 (최근 30일)
Patrick Sina
Patrick Sina 2021년 2월 9일
편집: Hunk Huang 2022년 2월 21일
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
Hunk Huang
Hunk Huang 2022년 2월 21일
편집: Hunk Huang 2022년 2월 21일
quiver(app.UIAxes,0,0,2,0,'b','filled','LineWidth',1)

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

답변 (1개)

Nitin Kapgate
Nitin Kapgate 2021년 2월 12일
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
Marco Degano
Marco Degano 2021년 3월 24일
편집: Marco Degano 2021년 3월 24일
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 2022년 2월 21일
편집: Hunk Huang 2022년 2월 21일
quiver(app.UIAxes,0,0,2,0,'b','filled','LineWidth',1)

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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by