Showing robot in app designer UIAxes

22 views (last 30 days)
Robert Pastor
Robert Pastor on 9 Jan 2022
Commented: Robert Pastor on 10 Jan 2022
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?

Answers (1)

Cris LaPierre
Cris LaPierre on 9 Jan 2022
Edited: Cris LaPierre on 9 Jan 2022
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'.
  4 Comments
Robert Pastor
Robert Pastor on 10 Jan 2022
Thanks, I thought I was doing something wrong. I will use a separate figure for now.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!