Using mex in Matlab

Matlab functions written in C++ are called MEX-files.MEX stands for Matlab EXectuable.

However,some old information left online, some of them mentioned cmex compile command in Matlab, but it doesn’t work in 2013a version.

You could just input the

>>mex yourfile.c

then some information will be shown to you for choosing proper compile.

Have Fun

Leave a comment