MATLAB Answers

Error in port widths or dimensions.

545 views (last 30 days)
Leo Sekar
Leo Sekar on 16 Oct 2015
Answered: Konrad Stegemann on 22 Jan 2019
Error in port widths or dimensions. Output port 1 of 'last/Subsystem/powergui/EquivalentModel1/Gates/From2' is a one dimensional vector with 2 elements.
AND
Error in port widths or dimensions. Invalid dimension has been specified for input port 2 of 'last/Subsystem/powergui/EquivalentModel1/Gates/Mux'.
I am using MATLAB 2010a. problem occurred in the switching circuit of invert. Anticipating your answers...

  0 Comments

Sign in to comment.

Accepted Answer

Dennie
Dennie on 16 Oct 2015
Hello Leo,
It is difficult to see from the pictures, but it looks like you have predefined the sizes of your signals. The dimensions of the signals going into the mux is not matching with what Simulink is expecting from the output. You can check this by double clicking on the problematic blocks and see which rule Simulink uses to determine the size and type of the signal.
To me it looks like the state space block is expecting a signal of the size 10x1, and the signal given to the mux is larger than that.
Kind regards,
Dennie

  3 Comments

Leo Sekar
Leo Sekar on 16 Oct 2015
Thank You Dennie, it would be better if you can suggest the answer.
Walter Roberson
Walter Roberson on 16 Oct 2015
You could possibly set the signal as "Inherit Size".
Leo Sekar
Leo Sekar on 16 Oct 2015
I have tried that option also Roberson.

Sign in to comment.

More Answers (2)

noureddine skik
noureddine skik on 29 Mar 2017
Error in port widths or dimensions. Invalid dimension has been specified for input port 1 of 'Three_Phase_LCL_Grid_Photovoltaic_Test/ /Subsystem/ /Integrator'.
can you help me

  0 Comments

Sign in to comment.


Konrad Stegemann
Konrad Stegemann on 22 Jan 2019
Error in port widths or dimensions. Output port 1 of 'Simulink1/Sum' has 1599 elements. This port does not accept the dimensions (or orientation) specified by the output signal.

  0 Comments

Sign in to comment.

Tags

No tags entered yet.