Animation of a volume
5 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 26 Feb 2025
You could use the File Exchange contribution videofig https://www.mathworks.com/matlabcentral/fileexchange/29544-figure-to-play-and-analyze-videos-with-custom-plots-on-top .
videofig(size(YourData,3), @(frame)redraw(YourData, frame));
function redraw(YourData, frame)
imshow(YourData(:,:,frame))
end
See Also
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!