How to return a vector from C++ MEX to MATLAB?
9 views (last 30 days)
Show older comments
Hello All,
I'm trying to return an array from C++ MEX file to MATLAB,
I can return a scalar value when I use "outputs[0] = factory.createScalar(SCALAR VALUE);"
Is there anything similar but return an array instead of scalar?
Thanks
0 Comments
Answers (1)
Swatantra Mahato
on 2 Jul 2021
Hi,
Kindly refer to the following documentation link for examples on how to use arrays from a C++ mex file in MATLAB
Hope this helps
0 Comments
See Also
Categories
Find more on Call C++ from MATLAB 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!