image thumbnail
from C/C++ and Matlab types convertor by sun peng
Bidirectional conversion between C/C++ type (STL, openCV) and Matlab matrix (compile or run time)

make.m
%% Run this cell for Release version
AddiIncPath = ['-I','..\..\src'];
OutFile = 'mx_add';
mex('mex_main.cpp',AddiIncPath,'-output',OutFile);
clear AddiIncPath OutFile
%% Run this cell for Debug version
AddiIncPath = ['-I','..\..\src'];
OutFile = 'mx_add';
mex('mex_main.cpp',AddiIncPath,'-output',OutFile, '-g');
clear AddiIncPath OutFile

Contact us at files@mathworks.com