From: Peter Ma on
I'm using movie2avi to create an avi video file from some MATLAB figures. At the same time I also want to add audio into the same avi file. Is there any MATLAB functions that could generate a avi file with both audio and video?
From: witek on
Peter Ma <qm(a)u.washington.edu> wrote:
> I'm using movie2avi to create an avi video file from some MATLAB figures. At the same time I also want to add audio into the same avi file. Is there any MATLAB functions that could generate a avi file with both audio and video?

Yes, there is. It's part of the Video and Image Processing blockset. It's an object called:

video.MultimediaFileWriter

>> help video.MultimediaFileWriter
MultimediaFileWriter Write video and/or audio samples to a multimedia file
HMFW = signalblks.MultimediaFileWriter returns a multimedia file writer
System object, HMFW, that writes video frames and/or audio samples to a
multimedia file (such as an AVI file).

It's new in 10a release of MATLAB.

Witek