Clear Filters
Clear Filters

mxArray* to mwArray

2 views (last 30 days)
Roshtha
Roshtha on 11 Aug 2017
Hello all,
I have a program in C++ that creates mxArray* variables and uses them to call matlab engine and execute matlab scripts. Now I am changing matlab engine with matlab shared dlls.
I use mcc command
mcc -v -W cpplib:libMyLib -T link:lib test.m
This generates .dll, .lib and .h file. The .h file has c++ entry point functions which accept mwArray. As the existing application has a large number of functions which accept and return mxArray*, I don't want to convert them all to mwArray. Instead, I would like to convert the final mxArray* variable to mwArray and pass to shared dll.
How can I convert mxArray* to mwArray?
Thanks

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!