kyamagu / mexplus

C++ Matlab MEX development kit.
Other
99 stars 49 forks source link

Add a constructor to MxArray to create multi-dimensional arrays #19

Closed patrikhuber closed 7 years ago

patrikhuber commented 7 years ago

Add a constructor that calls mxCreateNumericArray, to create multi-dimensional arrays (e.g. 3-channel images).

patrikhuber commented 7 years ago

This adds support for creating multi-dimensional arrays, as mentioned in #18.

A method to set values in such arrays already exists: void MxArray::set(const std::vector<mwIndex>& subscripts, const T& value).

kyamagu commented 7 years ago

@patrikhuber Thanks!