Alternative to convhulln() function for code generation in Simulink?

2 ビュー (過去 30 日間)
Andrew Poissant
Andrew Poissant 2019 年 3 月 1 日
回答済み: Shivam Gupta 2019 年 3 月 5 日
I am trying to get my matlab code in a matlab function block in Simulink. However, one of the functions I use, convhulln(), is not supported for code generation. Does anyone know of any workarounds for this? Only options I have seen is to code it myself but I am not totally sure how to do that. I am running 2018b for matlab and simulink.

回答 (1 件)

Shivam Gupta
Shivam Gupta 2019 年 3 月 5 日
At the link below you can find a complete list of the functions and objects supported for C/C++ code generation as of R2018b.
Since convhulln() is not supported for Code Generation, you can try writing code for convhulln() and then generate C/C++ code using MATLAB Coder. At the link below you can find a link to Getting Started with MATLAB Coder.
For more information see:
https://in.mathworks.com/videos/generate-c-code-from-matlab-code-108233.html

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by