Have a look at the MEX-files Guide, especially Section 25–27 for C++.
The basic STL/Boost data structures should work, but threading with Boost could be a problem.
cout
will not work as expected in C++, mexPrintf
has to be used instead.
More Related Contents:
- How to implement Matlab’s mldivide (a.k.a. the backslash operator “\”)
- Fill the holes in OpenCV [duplicate]
- connected components in OpenCV
- Fast color quantization in OpenCV
- Preventing a MEX file from crashing in MATLAB
- MATLAB vs C++ vs OpenCV – imresize
- Matlab vs C++ Double Precision
- LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT_StaticRelease’ doesn’t match value ‘MD_DynamicRelease’ in file.obj
- Performance Tradeoff – When is MATLAB better/slower than C/C++
- Correctly over-loading a stringbuf to replace cout in a MATLAB mex file
- Initializing a ublas vector from a C array
- How to open an application through C++? [closed]
- What are copy elision and return value optimization?
- What are the mechanics of short string optimization in libc++?
- Is local static variable initialization thread-safe in C++11? [duplicate]
- Why pow(10,5) = 9,999 in C++
- Explicit template instantiation – when is it used?
- Can’t set value of static object field (error LNK2001: unresolved external symbol)
- How to Detect the Number of Physical Processors / Cores on Windows, Mac and Linux
- Does constexpr imply inline?
- Adding types to the std namespace
- What the point of using std::ios_base::binary?
- How to overload unary minus operator in C++?
- Will new operator return NULL? [duplicate]
- Does one double promote every int in the equation to double?
- brace initialization for inherited pod
- How to name this key-oriented access-protection pattern?
- Unable to find Eigen3 with CMake
- Changing C++ output without changing the main() function [closed]
- list of polymorphic objects