Clear Filters
Clear Filters

Test an application created in Coder in MATLAB environment

2 views (last 30 days)
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

Answers (1)

Ji Lee
Ji Lee on 6 Apr 2022
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.

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!