Reputation: 99
I am trying to create a mex.cpp file and I am unsure how to use the "mex.h" file. I have seen it used in other mex files and it seems like it is a standard .h file that contains some of the 'mex types' which allow for compatibility between Matlab and C++. Could someone provide some more clarification as to how I should 1) find the mex.h file and 2) use it?
Thanks
Upvotes: 2
Views: 6007
Reputation: 1191
Calling mex in MATLAB console should automatically setup needed headers. If you want to use your favorite compiler instead of MATLAB console then you should find library and it headers and setup it as any other library.
Upvotes: 1