Animate 2D line object
Show older comments
Hi,
I'm trying to animate a line object, which should traslate sinusoidally in the vertical axis and rotate sinusoidally with respect to a point of the same line both at the same time.
Thanks in advance for your attention.
BR
Javi
Edit: Maybe I've been too brief. I'm trying to plot it in a GUI's axes. The thing is that with rotate and traslate commands I can't make it describe the movement I want, because the rotation center is moving as well (it belongs to the line). It should be inside a while (so that it moves until user pushes stop button), so I guess that inside rotate and translate should be a function, as well as for the origin or rotation center. I hope this clarifies the question.
Accepted Answer
More Answers (1)
Chad Greene
on 20 Jan 2015
0 votes
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!