Matlab /mex
mex cpp file in Matlab option
uniqueone
2016. 5. 17. 14:41
http://www.mathworks.com/matlabcentral/answers/169911-cpp-file-in-matlab
Hi,
you will need to tell mex where to find the include files, and probably also the library files. Your call should look something like
mex -I"C:\Program Files\opencv\include" Loadimage.cpp -l"C:\Program Files\opencv\lib" -Lopencv.lib
Take a look at the doc for mex and there at the flags "-I", "-L", "-l".
Titus