Loading static library to be implemented in Simulink

6 visualizaciones (últimos 30 días)
Paulo Martin
Paulo Martin el 16 de Sept. de 2020
Respondida: Fangjun Jiang el 16 de Sept. de 2020
I am trying to load a library and header files in Matlab so I can implement its function into a level 2 S-Function in Simulink. I have a ".a" file static library and a header file. There are also other header files included in the first header file mentioned. The header files are written in C language. I've tried using the loadlibrary command but to my understanding it isn't applicable to static libraries. I've also read from another question's answer that one way to do this is to create a mex file that calls the function in the library. I'm not sure if this will work or even how to do it. What would be the best way to go with this?

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 16 de Sept. de 2020
Available since R2018b

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by