Info
此问题已关闭。 请重新打开它进行编辑或回答。
Drawing a shape in a function that will be called by a different program that will translate it.
1 次查看(过去 30 天)
显示 更早的评论
I am trying to write a Matlab function that draws something and then in another "main" program will move it.
I have the main program all set, but am I not sure how to create the shape in the other function. The 'drawing' function takes two points (x,y) for location.
Any help will be appreciated. Thanks.
0 个评论
回答(1 个)
Shruti Sapre
2016-2-10
Hi Eungee,
The function that draws the circle could return the handle to the shape object. You could use this handle to get the x and y location, and then translate the object.
Hope this helps!
-Shruti
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!