MATLAB Answers

Rectifying port width error

2 views (last 30 days)
MARIMUTHU C on 22 Jul 2020
Answered: Joel Van Sickel on 4 Aug 2020
While running SimPower systems project in Matlab 2020, The following error meaasge came.
Error in port widths or dimensions. 'Output Port 1' of 'Grid12072020/powergui/EquivalentModel1/Gates/From12' has 3 elements. This port does not accept the dimensions (or orientation) specified by the output signal.
Component:Simulink | Category:Model error
Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 12' of 'Grid12072020/powergui/EquivalentModel1/Gates/Mux'.
how do i rectiify it ?


Sign in to comment.

Answers (1)

Joel Van Sickel
Joel Van Sickel on 4 Aug 2020
Hello Marimuthu,
simulink wires can carry multiple signals (aka, they can be vectors instead of scalars). This can be controlled with the mux and demux blocks, or the selector block. Your simulation is reporting a mismatch, so you might be using a power systems block that requires more signals than you are passing to it, or you might be passing too many signals. You will to make sure your input lines have the appropriate dimensions for the input ports they are connecting to. The error tells you the specific signal that is causing the problem.


Sign in to comment.




Community Treasure Hunt

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

Start Hunting!