How to fix Simulink dimesion error?

1 visualización (últimos 30 días)
Deepti Almelkar
Deepti Almelkar el 31 de Mayo de 2015
Respondida: Umakant el 2 de Jun. de 2015
How to fix the following error: Error in port widths or dimensions. Output port 1 of 'Capstone_modelR1/XY Graph1/Mux' is a [1x126] matrix.

Respuestas (1)

Umakant
Umakant el 2 de Jun. de 2015
Hi Deepti,
Are you using S-Function block in your model? This error may be observed when creating an S-Function block with variable input port sizes. If this is the case, please see if the following helps:
1) All input ports must have a maximum size limit. For example you may have a variable sized matrix as an input to S-Function block but maximum size should be specified in the Model Explorer.
2) The variable option can be checked in the 'Model Explorer' but within a code there should not be a situation which will cause the array to increase beyond the maximum size.
3) No input port inherits its dimension from other input ports. The sizes are specified clearly in the Model Explorer.
Please check your model with respect to the points mentioned above.
Thanks,
Umakant

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by