MATLAB: Do I receive an error in regards to the number of arguments to the STRUCT function when used within an Embedded MATLAB function block in Simulink 6.6 (R2007a)

64argumentssimulinkstruct

I create a structure within an Embedded MATLAB function block using the STRUCT function with more than 64 arguments. When I simulate this model, I receive the following error:
Too many arguments given to struct(); current limitation is 64 arguments.
If I reduce the number of arguments to less than 64, the model simulates without errors.

Best Answer

This bug has been fixed in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
The ability to use the STRUCT function with more than 64 arguments is not available in Simulink 6.6 (R2007a).
To work around this issue, pass in less than 64 arguments.