Animating an imported image

回答(2 个)

Image Analyst
Image Analyst 2020-1-1

1 个投票

See attached demo for how to turn something displayed in an axes, like an image or a plot, into a movie.
Image Analyst
Image Analyst 2020-1-1

1 个投票

4 个评论

Hey, Thanks for the assistance...
However, I don't want to create an animated gif, I want to recreate a bottling system. E.g an empty bottle is moving along a straight line and then upon a command, it gets filled.
There is no built-in code for that. You'll have to write it yourself from lower level things like plot() to draw the bottle, and patch() or fill() to fill it with some color.
But how do you animate the image upon a start/stop command?
See attached demo that has a start/stop button.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Animation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by