필터 지우기
필터 지우기

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

조회 수: 9 (최근 30일)
R. R.
R. R. 2021년 6월 25일
답변: Yongjian Feng 2021년 6월 25일
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,

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 6월 25일
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

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by