Info

此问题已关闭。 请重新打开它进行编辑或回答。

Code generation with user's function

1 次查看(过去 30 天)
Alex
Alex 2014-2-26
关闭: MATLAB Answer Bot 2021-8-20
I have a simulink model with a "MATLAB Function" block which calls m-function. If this m-function has one input and one output variables, this model is built to MS Visual Studio solution well. But if this m-function will have arrays in input and output, model building is interrupted with error: "Undefined function or variable 'out'. The first assignment to a local variable determines its class".
Is it possible to create a MSVS solution from a simulink model with user's functions with array argument?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by