Info

This question is closed. Reopen it to edit or answer.

Code generation with user's function

1 view (last 30 days)
Alex
Alex on 26 Feb 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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?

Answers (0)

Community Treasure Hunt

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

Start Hunting!