Animation of a volume
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Walter Roberson
2025 年 2 月 26 日
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
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!