How to return a vector from C++ MEX to MATLAB?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Swatantra Mahato
2021년 7월 2일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!