Rank: 4380 based on 26 downloads (last 30 days) and 2 files submitted
photo

Julia

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Julia View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 Jul 2009 Intersect several arrays Uses Matlab standard intersect function recursively to return the intersection of several arrays. Author: Julia matrix, intersect, intersection, common 11 1
24 Jul 2009 Union of several arrays Uses matlab union function recursively to create the union of several arrays Author: Julia matrix, union, common 15 0
Comments and Ratings by Julia View all
Updated File Comments Rating
19 Jan 2012 mpgwrite The MPEG converter takes a MATLAB movie matrix and writes the movie to disk as an MPEG file. Author: David Foti

Seems to work so far. Just wanted to say I'm running Windows and was having the same trouble as many people, but Andrea's detailed advice on installing and using Visual Studio as a compiler made all the difference.

I'm copy-pasting the key part from the website Andrea linked, even though it's long, since this was the key part for me.
http://grantnz.blogspot.com/2010/07/compiling-matlab-mpgwrite-with-vs2010.html

Compiling Matlab mpgwrite with VS2010 for 64 bit Windows
I was having trouble producing Matlab movies of reasonable quality on my 64 bit Windows 7 laptop until I was able to compile and run mpgwrite (source available from Matlab Central http://www.mathworks.com/matlabcentral/fileexchange/309-mpgwrite).

It wasn't obvious how to get this to compile and run so in case someone else would like to do this I've documented what I did:

1. Ensure Visual Studio 2010 installation includes the "X64 Compilers and Tools" (and option under the Visual C++ feature in the Visual Studio 2010 installer).

2. Configure the mex script for VS2010.
Matlab R2009b and earlier doesn't directly support Visual Studio 2010 but you can still use it by running
mex -setup
from Matlab.
a. Answer n to the first question (Would you like mex to locate installed compilers [y]/n? )
b. Select "Microsoft Visual C++ 2008 SP1 " (option 5)
c. The script will output:
The default location for Microsoft Visual C++ 2008 SP1 compilers is
C:\Program Files (x86)\Microsoft Visual Studio 9.0,
but that directory does not exist on this machine.
Use C:\Program Files (x86)\Microsoft Visual Studio 9.0 anyway [y]/n?

Answer n
d. Locate your Visual Studio 2010 installation folder and enter this in response to the next question. Visual Studio 2010 was probably installed to C:\Program Files (x86)\Microsoft Visual Studio 10.0
e. Finally, you will be asked to confirm the settings and Matlab will create a file mexopts.bat with the configuration information.

3. From Microsoft Visual Studio 2010\Visual Studio Tools open "Visual Studio x64 Win64 Command prompt (2010)".

4. Change to the src folder of the downloaded the mpgwrite source code using the "cd" command.

5. Edit the file makefile and replace $(MCC) $(MCFLAGS) after the call to mex with
-v -DWIN32
That is, your makefile should contain:

mpgread:
mex -v -DWIN32 mpgwrite.c mfwddct.c \
postdct.c huff.c bitio.c mheaders.c iframe.c \
pframe.c bframe.c psearch.c bsearch.c block.c \
mpeg.c subsampl.c jrevdct.c frame.c fsize.c

5. Run
nmake -f makefile

6. This should generate the file
mpgwrite.mexw64
Copy this file to a folder on the matlab path.

You should now be able to generate mpeg movies from matlab.

25 Nov 2010 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

Dear Oliver,

thanks for saving my (publication) life.

Julia

11 Nov 2009 write2excel Writes data to multiple ranges of existing Excel file. Author: Brett Shoelson

and one more thing: is there a way to give input information regarding the sheet one wants to be written to?

11 Nov 2009 write2excel Writes data to multiple ranges of existing Excel file. Author: Brett Shoelson

Dear Brett,

I know excel is evil and doesn't implement the NaN standard, but is there a way to get your program to write something sensible, like "-" or ".." to a cell when the data array has an NaN?

Right now it writes 65535 for me, which is far to close to a real number to be helpful.

Cheers and thanks for the great coding,
Julia

24 Jul 2009 Intersect2 Finds the intersection (common elements) of several (more than two) arrays Author: Suri Like

I've submitted a script that fulfills the same function as this one, using a recursive scheme:
intersect several arrays
http://www.mathworks.com/matlabcentral/fileexchange/24835

There is a similar one for the union of several arrays:
http://www.mathworks.com/matlabcentral/fileexchange/24834

Comments and Ratings on Julia 's Files
Updated File Comment by Comments Rating
16 Jul 2011 Intersect several arrays Uses Matlab standard intersect function recursively to return the intersection of several arrays. Author: Julia Balazs

The first cycle can start with 2.

Contact us