Filter löschen
Filter löschen

Test an application created in Coder in MATLAB environment

2 Ansichten (letzte 30 Tage)
Marc Gebhardt
Marc Gebhardt am 23 Mär. 2022
Beantwortet: Ji Lee am 6 Apr. 2022
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

Antworten (1)

Ji Lee
Ji Lee am 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.

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by