MATLAB Answers

Error in port widths or dimensions.

527 views (last 30 days)
Leo Sekar
Leo Sekar on 16 Oct 2015
Commented: sandesh khadka on 9 Dec 2020
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...

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
  5 Comments
sandesh khadka
sandesh khadka on 9 Dec 2020
i have tried that option also. i can't get answer

Sign in to comment.

More Answers (5)

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

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.

sandesh khadka
sandesh khadka on 1 Dec 2020
Invalid setting for input port dimensions of 'BLDC/DECODER/Demux1'. The dimensions are being set to [-1]. This is not valid because the total number of input and output elements are not the same


sandesh khadka
sandesh khadka on 8 Dec 2020
Error in port widths or dimensions. Output port 1 of 'BLDC/powergui/EquivalentModel1/Sources/From3' has 2 elements. This port does not accept the dimensions (or orientation) specified by the output signal.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!