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

15 ビュー (過去 30 日間)
R. R.
R. R. 2021 年 6 月 29 日
回答済み: Swatantra Mahato 2021 年 7 月 2 日
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

回答 (1 件)

Swatantra Mahato
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

カテゴリ

Help Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by