in Matlab einmal:
 mex -setup
und den Compiler aussuchen. Ich benutze Visual-C 4.0 


Dos Box oeffnen

MEX-File compilieren.
set PATH=C:\windows;c:\windows\command

C:\PROGRA~1\MSDEV\BIN\VCVARS32.BAT x86

set PATH=%PATH%;c:\matlabr11\bin

cd \matlabr11\extern\examples\mex

mex yprime.c

--> yprime.dll

Engine-File compilieren:
cd \matlabr11\extern\examples\eng_mat

mex -f c:\matlabr11\bin\msvcengmatopts.bat engwindemo.c

(Ich habe hier eine Fehlermeldung: Datei nicht gefunden. Aber
das macht scheinbar nichts aus.)

engwindemo

-> einige Fenster erscheinen nacheinander

JMatLink kompilieren

set PATH=%PATH%;c:\Programme\jdk1.1.4\bin

cd c:\mueller\web\JMatLink


mex.bat -v  -Ic:\programme\jdk1.1.4\include -Ic:\programme\jdk1.1.4\include\Win32 -f msvcengmatopts.bat JMatLink.c










