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

조회 수: 18 (최근 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 CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by