Nov 7, 2011

Mex: Matlab Executables

mex
  • To compile a mex file written in C programming language, e.g.,
    • mex -setup 
    • mex test_mex.c other_C_file_the_mex_file_using.c -O
  • Commands to compile the code:
    • mex -largeArrayDims a.cpp
    • mex -largeArrayDims b.cpp
    • mex -O c.cpp
  • If .c file doesn't compile due to comments with double slash //, then do the following:
    • mex mxExample.c mxCFLAGS="\$CFLAGS -std=c99"  
Mex tutorial

mex options

No comments:

Down with the Dictatorship!

    "Let them hate me, so that fear me" - Caligula 41AD