Physical Pendulum Program: Cylinder
显示 更早的评论
I am programming a physical pendulum in which I need to animate an object, preferably a cylinder, to rotate back and forth on the pivot point which I have assigned to be 0. Does anyone know how I would be able to plot an oscillating cylinder, or even just a rectangle would be fine, from the pivot point? Right now I have just a square attached to a red line.
回答(1 个)
Walter Roberson
2017-5-29
0 个投票
Inside the axes create a hggroup. Parent the drawing of the object to the hggroup. Then you can apply hgtransform to the hggroup to rotate or move the object
类别
在 帮助中心 和 File Exchange 中查找有关 Assembly 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!