creating images and make a movie in matlab

조회 수: 3 (최근 30일)
Ham Man
Ham Man 2020년 12월 9일
답변: Image Analyst 2020년 12월 9일
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
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
Image Analyst 2020년 12월 9일
See my attached demo where I create a movie from a series of plots I make with surf().

Community Treasure Hunt

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

Start Hunting!

Translated by