Borrar filtros
Borrar filtros

How to return a vector from C++ MEX to MATLAB?

17 visualizaciones (últimos 30 días)
R. R.
R. R. el 29 de Jun. de 2021
Respondida: Swatantra Mahato el 2 de Jul. de 2021
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

Respuestas (1)

Swatantra Mahato
Swatantra Mahato el 2 de Jul. de 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

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by