creating images and make a movie in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
I have a code tracking particles in a pipeline. I used
scatter3(x,y,z)
and then
baseFileName = sprintf('%03d.png', iw)
to createimages from particle displacement and then used VideoWriter function to make a video from those images. The output video doesn't shows a smooth particle movement and there are jumping at some points. Is there any advice to fix the problem?
Many thanks in advance.
1 件のコメント
Walter Roberson
2020 年 12 月 9 日
I recommend putting in a brief pause() between generating the plot and capturing the current axes, to give time for the graphics to update.
回答 (1 件)
Image Analyst
2020 年 12 月 9 日
See my attached demo where I create a movie from a series of plots I make with surf().
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!