- 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 options
No comments:
Post a Comment