R.plot app designer

2 views (last 30 days)
Erick Soto
Erick Soto on 16 Jul 2020
hi, i need help ploting in an appp designer, i tri to display a figure generated by this code
Robot.plot(q,'workspace',[-100 100 -100 100 0 100]);
but matlab creates a new figure instead of put it inside the axes in my app so i've tried to use this
hold(app.figura,"on");
% and this
Robot.plot(app.figure,q,'workspace',[-100 100 -100 100 0 100]);
but then q hasn't insuficient columns
at last i tried to
app.figura=Robot.plot(q,'workspace',[-100 100 -100 100 0 100]);
but there are too many output arguments
every help will be apreciated

Answers (1)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi on 20 Jul 2020
Hi,
You could create an axis on app.UIFigure and pass it as an input argument to the plot function (assuming you were trying to use MATLAB plot function). For more details on how to give axes as input refer to the below link
Hope this helps!

Categories

Find more on Trigonometry in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!