Filter löschen
Filter löschen

Does MATLAB C++ MEX accept an array of Complex numbers as input?

9 Ansichten (letzte 30 Tage)
R. R.
R. R. am 25 Jun. 2021
Beantwortet: Yongjian Feng am 25 Jun. 2021
Hello All,
I'm trying to use the C++ MEX file to get an input from MATLAB as an array of complex number then I want to do some processing in C++ and then return another array of complex number to Matlab. Is that possible? and How?
Same like this example in the link below which written in c
Thanks,

Antworten (1)

Yongjian Feng
Yongjian Feng am 25 Jun. 2021
Hello,
Your C++ MEX file can call all those C MEX functions. By merging this example (https://www.mathworks.com/help/matlab/matlab_external/c-mex-source-file.html) with the one you cited, you should be able to do it.
Thanks,
Yongjian

Kategorien

Mehr zu Call C++ from MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by