MATLAB Answers

App Designer show mdl_twolink in UiAxes Component

조회 수: 4(최근 30일)
Guilherme Escarduça
Guilherme Escarduça 2021년 6월 12일
댓글: Guilherme Escarduça 2021년 6월 25일
Hi,
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:
mesh(app.UIAxes,twolink.plot([Th1 Th2]))
plot(app.UIAxes, twolink.plot([Th1 Th2]))
figure(app.UIAxes);
But no success

답변(1개)

Vimal Rathod
Vimal Rathod 2021년 6월 16일
Hi,
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.
  댓글 수: 1
Guilherme Escarduça
Guilherme Escarduça 2021년 6월 25일
Hi sorry it took me so long to answer, it did not work, for some reason there was no change to the axes.Gonna keep trying stuff, thanks anyway.

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

Community Treasure Hunt

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

Start Hunting!

Translated by