mpgwrite
The MPEG converter takes a MATLAB movie matrix and writes the movie to disk as an MPEG file.
Author: David Foti
Just got it to work!
Specs:
Windows XP Professional x64 Edition
MATLAB R2007b 64-bit
Steps:
1) Install Visual C++ 2008 Express http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express
- It doesn't come with the x64 bit compilers (thanks cheap-o Microsoft)
2) Install Microsoft SDK 6.1
http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en
- Make sure that the x64 compilers option is selected _before_ installing.
3) In "mpgwrite/src/Makefile"
change "$(MCC) $(MCFLAGS) " to "-v -DWIN32"
4) Open "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\Visual Studio 2008 x64 Win64 Command Prompt"
5) Navigate to the mpgwrite/src folder
6) Run nmake -f Makefile
7) Move mpgwrite.mexw64 to mpgwrite folder (out of the src folder)
8) Add mpgwrite folder to your MATLAB path
Sources:
* http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/?solution=1-6IJJ3L
* http://grantnz.blogspot.com/2010/07/compiling-matlab-mpgwrite-with-vs2010.html
* Andrea's post above
Works excellently. Found out how to make CMYK tiffs for publication. Follow this code:
figure('InvertHardcopy','off','Color',[1 1 1]); % Force the background to be white
plot(x, y);
export_fig([filepath filename 'full'], '-tif', '-cmyk', '-r300'); % For CMYK 300 DPI tiff images