Calling external C codes in MATLAB Function block

조회 수: 5 (최근 30일)
Saeed Soltani
Saeed Soltani 2016년 7월 7일
편집: BhaTTa 2025년 4월 17일
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.

답변 (1개)

BhaTTa
BhaTTa 2025년 4월 17일
편집: BhaTTa 2025년 4월 17일

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by