This link has been bookmarked by 13 people . It was first bookmarked on 26 Jul 2006, by (ta).
-
25 Mar 12
-
Obtain the gnumex archive via the gnumex project SourceForge page.
-
c:\gnumex
-
For convenience, you might consider putting the directory containing gnumex.m and the dlls onto your Matlab path.
-
When you run mex from Matlab, or from the command line, you run the file mex.bat in the Matlab bin directory
-
This options bat file is by default called mexopts.bat
-
can tell which options file mex is using by running "mex -v" from the Matlab prompt
-
change directory to the gnumex directory you selected earlier (e.g c:\gnumex above). Then type "gnumex" from the Matlab promp
-
The top edit box needs to contain the path of the Cygwin directory - here c:\cygwin
-
he next edit box should point to the root directory of MingW - here c:\mingw.
-
If you want to use Cygwin compiles, choose the Cygwin option in this list box, and make sure the top (Cygwin root path) box is set to your Cygwin root directory. If you want to use Mingw, select the Mingw option in this list box, and check you have the right "Mingw root path" set. Choose the Cygwin/mingw option for Cygwin/mingw hybrid compiles; this option uses the "Cygwin root path" directory.
-
After you have set the directories correctly, you may want to save this configuration, using the File-Save config menu option. When it starts up, the gnumex script will look for a default configuration file called gnumexcfg.mat in the same directory as the gnumex.m file, so you could save the file in this directory to get these same options on startup.
-
You should now be able to try a mex file compile. At the Matlab >> prompt, type
mex -f mexopts.bat c:\progra~1\matlab\extern\examples\mex\yprime.c
-
-
15 Oct 11
-
13 Apr 07
-
07 Dec 06
-
12 Oct 06
-
26 May 06
-
09 Jan 06
-
04 Dec 05
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.