mxArray* to mwArray
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!