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

9 Ansichten (letzte 30 Tage)
ladybird
ladybird am 20 Nov. 2020
Kommentiert: Rena Berman am 20 Sep. 2021
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!

Antworten (1)

Pankhuri Kasliwal
Pankhuri Kasliwal am 23 Nov. 2020
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 -

Kategorien

Mehr zu Call C++ from MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by