How to interact with matlab function (complex array as argument) from Qt (C++)

1 回表示 (過去 30 日間)
Peng Ye
Peng Ye 2018 年 8 月 16 日
コメント済み: Peng Ye 2018 年 8 月 18 日
I have a matlab function which takes a multi-dimension complex array as argument, and which return a multi-dimension complex array. I'm like to call that in my Qt application.
I've done some study and I understand I can compile my matlab function and call it from Qt. But how can I pass multi-dimension complex array back and forth? In Qt I can do QList<std::complex<double>> as the data type but is that what I can pass to Matlab function? Thanks.
  10 件のコメント
Walter Roberson
Walter Roberson 2018 年 8 月 18 日
That looks like it should be fairly efficient.
In MATLAB, the equivalent would be
C = complex(A, B);
Peng Ye
Peng Ye 2018 年 8 月 18 日
Thanks a lot for the help. I have this part sorted out... but I have a big problem preventing me from using these... Can you help taking a look? Thanks.
https://www.mathworks.com/matlabcentral/answers/415314-undefined-reference-error-when-calling-matlab-function-in-qt

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeploy to C++ Applications Using mwArray API (C++03) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by