How to use FEVAL from C/C++ code?

16 ビュー (過去 30 日間)
ladybird
ladybird 2020 年 11 月 20 日
コメント済み: Rena Berman 2021 年 9 月 20 日
Is there an example of how to call MATLB from C/C++ using a MATLAB function that you wrote yourself? All of the examples I've seen have used built in MATLAB functions like gcd or sin. Thanks!
  1 件のコメント
Rena Berman
Rena Berman 2021 年 9 月 20 日
(Answers Dev) Restored edit

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

回答 (1 件)

Pankhuri Kasliwal
Pankhuri Kasliwal 2020 年 11 月 23 日
Hello,
You can call MATLAB functions from C++ using the feval and fevalAsync member functions of the matlab::engine::MATLABEngine class. Use these functions when you want to pass function arguments from C++ to MATLAB and to return the result of the function execution to C++. These member functions work like the MATLAB feval function.
For more details please refer to the following link -

カテゴリ

Help Center および File ExchangeCall C++ from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by