フィルターのクリア

Test an application created in Coder in MATLAB environment

2 ビュー (過去 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 Center および File ExchangeMATLAB Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by