Animation of a volume

2 visualizaciones (últimos 30 días)
Sebastian Daneli
Sebastian Daneli el 26 de Feb. de 2025
Comentada: Sebastian Daneli el 28 de Feb. de 2025
I have a volume (1040x1392x41 double) and I would like to create an animation that visualizes this volume. A simple one would be one visualizes the volume in the z-direction (going from 1 to 41) and back up again, without the need for user interference.

Respuestas (1)

Walter Roberson
Walter Roberson el 26 de Feb. de 2025
videofig(size(YourData,3), @(frame)redraw(YourData, frame));
function redraw(YourData, frame)
imshow(YourData(:,:,frame))
end
  1 comentario
Sebastian Daneli
Sebastian Daneli el 28 de Feb. de 2025
@Walter Roberson, does not work at all. Just shows me whatever frame I'm intressted to look at.

Iniciar sesión para comentar.

Categorías

Más información sobre Animation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by