App Designer show mdl_twolink in UiAxes Component
7 views (last 30 days)
I am beginner in matlab and app designer, i have been playing with Peter Corke's Robotics Toolbox and i was trying to display the plot of mdl_twolink on the axes component but it keeps creating a new figure.
Is what i want possible and if it is how would i go about it?
I have read a couple of things and tried the following:
plot(app.UIAxes, twolink.plot([Th1 Th2]))
But no success
Vimal Rathod on 16 Jun 2021
I would recommend you to try using the plot without the twolink.plot function unless the twolink.plot function returns x,y vectors.
Instead try using the following and see if it works.
plot(app.UIAxes, Th1, Th2);
This would directly create a 2D line plot using the vectors Th1 and Th2 with app.UIAxes as the axes and it won't create a new figure for it.