MATLAB: Do I receive a “cannot use set default dimension function” error when using the Matrix Concatenate block in a subsystem in Simulink 6.5 (R2006b)

simulink

I receive the following error message when using the Matrix Concatenate block:
cannot use 'set default dimension' function
However, when I move the problematic subsystem out of the larger model into its own standalone model, it works fine.

Best Answer

The reason you receive the error is because one or more of the input signals to the "Matrix Concatenate" block do(es) not have defined dimensions.
To work around this issue, you can explicitly define the dimensions of the signal(s) by using the Signal Specification block in line with the signal(s). For more information on the Signal Specification block, please refer to the documentation for the same, by typing the following on MATLAB command window.
doc signalspecification