Animating an imported image

Respuestas (2)

Image Analyst
Image Analyst el 1 de En. de 2020

1 voto

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 el 1 de En. de 2020

1 voto

4 comentarios

Chelsea Mohammed
Chelsea Mohammed el 1 de En. de 2020
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.
Image Analyst
Image Analyst el 1 de En. de 2020
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.
Chelsea Mohammed
Chelsea Mohammed el 1 de En. de 2020
Editada: Chelsea Mohammed el 1 de En. de 2020
But how do you animate the image upon a start/stop command?
Image Analyst
Image Analyst el 2 de En. de 2020
See attached demo that has a start/stop button.

Iniciar sesión para comentar.

Categorías

Más información sobre Animation en Centro de ayuda y File Exchange.

Preguntada:

el 1 de En. de 2020

Comentada:

el 2 de En. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by