Helper functions for MEX & MATLAB

// global functions

template <typename MATRIX>
mxArray* mrpt::math::convertToMatlab(const MATRIX& mat);

template <typename CONTAINER>
mxArray* mrpt::math::convertVectorToMatlab(const CONTAINER& vec);

Global Functions

template <typename MATRIX>
mxArray* mrpt::math::convertToMatlab(const MATRIX& mat)

Convert vectors, arrays and matrices into Matlab vectors/matrices.

Supported input classes:

template <typename CONTAINER>
mxArray* mrpt::math::convertVectorToMatlab(const CONTAINER& vec)

Convert std::vector<> or std::deque<> of numeric types into Matlab vectors.