Function XXXX not supported for code generation.

조회 수: 2 (최근 30일)
yiran zhang
yiran zhang 2020년 12월 8일
답변: Ameer Hamza 2020년 12월 8일
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개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by