How can I generate code for a Matlab function block in Simulink that contains a ''quadprog function''?

2 次查看(过去 30 天)
I have a simulink model that contains a matlab function in which I have an optimization problem that is solved by quadprog function. I am facing a problem when performing the code generation for the matlab function block due to the presence of the quadprog func.

回答(1 个)

Jonas
Jonas 2021-7-9
See the C/C++ Code Generation notes here.
See an example for generating code with quadprog function here.

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by