Cpp to Mex conversion
Show older comments
How can I do a cpp conversion to mex?
Thanks
1 Comment
James Tursa
on 17 Jun 2019
Please post more details. Have you looked at the examples in the doc?
Accepted Answer
More Answers (1)
Suryaansh Mata
on 18 Jun 2019
0 votes
You can use the inbuilt MEX functionality to make use of the source code in C/C++ in MATLAB. Follow the step-by-step detailed instructions given at https://www.mathworks.com/help/matlab/matlab_external/standalone-example.html for the same.
2 Comments
Stelios Fanourakis
on 18 Jun 2019
Maria Cristina Bustos Rodriguez
on 31 Jan 2020
I solved that mxCreateNumericArray_730 error by putting this warning:
"mex -DMX_COMPAT_32 yourcode.cpp "
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!