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!