Function XXXX not supported for code generation.

I didnt try to generate any C code or any code but why simulink kept informing me for example: "Function 'cell2mat' not supported for code generation."
The tool box I used included autonoumous driving toolbox with 3D scene.

 채택된 답변

Ameer Hamza
Ameer Hamza 2020년 12월 8일
By default, Simulink converts the whole model to C code. If you are using this inside a MATLAB function block, you can use coder.extrinsic to tell Simulink to don't convert it to C code. Add the following line at the beginning of your function
coder.extrinsic('cell2mat')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

질문:

2020년 12월 8일

답변:

2020년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by