Calling external C codes in MATLAB Function block

6 vues (au cours des 30 derniers jours)
Saeed Soltani
Saeed Soltani le 7 Juil 2016
Modifié(e) : BhaTTa le 17 Avr 2025
Hi, I am modeling an automotive system in Simulink. There are large amount of pre-written C codes which I have to call them in MATLAB Function blocks. As far as I know there are different methods to call an external function in MATLAB, like making MEX file or using Legacy Code Tool. Also I recently noticed that coder.ceval function is used in some similar cases. Since there several C code files and they have also dependencies, I am not sure which one is more efficient or possible in this case. Any idea would be greatly appreciated. Thanks.

Réponses (1)

BhaTTa
BhaTTa le 17 Avr 2025
Modifié(e) : BhaTTa le 17 Avr 2025

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by