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 日

1 投票

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 ExchangeSimulink 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