필터 지우기
필터 지우기

Showing robot in app designer UIAxes

조회 수: 9 (최근 30일)
Robert Pastor
Robert Pastor 2022년 1월 9일
댓글: Lluís Ros 2023년 10월 5일
I want to draw a robot using the show() function from Robotics System Toolbox in App designer UIAxes.
However, the function does not work if I put app.UIAxes in the first argument nor if I specify Axes as a Name-Value argument:
show(app.UIAxes, robot);
show(robot, 'Parent',app.UIAxes);
I'm getting:
Undefined function 'show' for input arguments of type 'matlab.ui.control.UIAxes'.
or:
The value of 'Parent' is invalid. Functionality not supported with UIAxes.
Is there any other way to get the show() function into app designer?

답변 (1개)

Cris LaPierre
Cris LaPierre 2022년 1월 9일
편집: Cris LaPierre 2022년 1월 9일
Do you have the Robotics System Toolbox installed? Type ver in the command window to see. If not, and you have access to it, you can install it using the Add-Ons Explorer.
Once that toolbox is added, the correct syntax is option 2: 'Parent'.
  댓글 수: 5
Robert Pastor
Robert Pastor 2022년 1월 10일
Thanks, I thought I was doing something wrong. I will use a separate figure for now.
Lluís Ros
Lluís Ros 2023년 10월 5일
Is there any progress on solving this issue? In the latest Matlab version, 2023b, rigidBodyTree.show() is still unable to plot the results on app.UIaxes ...

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

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by