How do I use a MEX file generated from MATLAB Coder project that contains multiple entry-point functions?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 7 de Jun. de 2017
Editada: MathWorks Support Team
el 4 de Mayo de 2023
I have a MATLAB Coder project that takes in multiple entry-point MATLAB functions. When I generated MEX file from it, only the function whose name is on top of the alphabetic order is generated. Where do the other entry-point functions go?
Respuesta aceptada
MathWorks Support Team
el 21 de Abr. de 2023
Editada: MathWorks Support Team
el 4 de Mayo de 2023
When generating a MEX file with multiple entry-point functions, the function name appears on top of the alphabetic order will be chosen by default as the MEX file name. However, that does not mean the generated MEX file is only providing that function and ignoring the other entry-point function. I think it is a good practice to provide your own naming of the output MEX file. In addition, the syntax of calling a particular entry-point function from the generated source file follows the pattern below:
>> [the, output, variables] = mexfilename('entrypointFcn', other, entry-point, function, arguments);
As a reference, the page numbered "27-82" of the following documentation explains more about the usage of multiple entry-point functions.
https://www.mathworks.com/help/pdf_doc/coder/coder_ug.pdf
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!