Closed SpaceShawn closed 9 years ago
The problem is related to code generation in Simulink. All steps are followed to my knowledge from this source: http://www.mathworks.com/help/simulink/ug/best-practices-for-defining-variables-for-c-c-code-generation.html
This occurs because the Matlab Function block interprets an incoming array as a single variable due to incompatibility with mxArray type
In the _dynamic_weightcalculation.m file, an array is zeroed with the correct length to store all the data that will populate it:
Then, we loop through it and assign values:
The following error messages appear: