Test an application created in Coder in MATLAB environment

조회 수: 1 (최근 30일)
Marc Gebhardt
Marc Gebhardt 2022년 3월 23일
답변: Ji Lee 2022년 4월 6일
Hi,
i created a basic .dll, .mex or c++/c file in Matlab for a function (just as an easy example: calculate the rows of a variable in abc.mat file of the same folder).
All these files with the header files and so on are existing in my matlab path. How can a just run the compiled application in matlab?
Regards

답변 (1개)

Ji Lee
Ji Lee 2022년 4월 6일
MEX functions produced by MATLAB Coder can be invoked and used directly as if they were any other MATLAB function. For single entry-point MEX functions, you can just refer to them by the name of the MEX file (sans extension). MATLAB Coder does provide the coder.runTest utility for automatically redirecting calls from an original, non-MEX form of the function to the compiled MEX form. This is useful for reusing any unmodified test scripts or unit tests you may already have that expect the original MATLAB code.
For testing other binary outputs of MATLAB Coder (e.g. DLL files) from within MATLAB itself, Embedded Coder is required.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by