Test an application created in Coder in MATLAB environment

2 次查看(过去 30 天)
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