Matlab Coder - Create DLL
Ältere Kommentare anzeigen
As an example here is a function, that I want to compiler through Matlab coder in a DLL:
function [C] = Test(A,B) %#codegen
C=A+B;
end
Compiling this function and loading the DLL with "loadlibrary" I can see the required calling convention using libfunctionsview as expected: Return Type Name Arguments double Test (double, double)
Instead, if I have a function with two outputs:
function [C,D] = Test(A,B) %#codegen
C=A+B; D=A-B;
end
The calling convention is the following:
Return Type Name Arguments [doublePtr, doublePtr] Test (double, double, doublePtr, doublePtr)
Why the two additional arguments "... doublePtr, doublePtr)"? I need to avoid this and have a calling convention like this: Return Type Name Arguments [double, double] Test (double, double)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Coder finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!