hello, Error:Error in port widths or dimensions. 'Output Port 1' of 'nn/powergui/EquivalentModel1/Gates/From6' is a one dimensional vector with 3 elements.
5 views (last 30 days)
Show older comments
Answers (1)
Raj
on 3 Mar 2025
Hi @RICHMOND
From the error message, it seems the issue is due to a mismatch between the expected dimensions of inputs and outputs between blocks. The output of the 'nn/powergui/EquivalentModel1/Gates/From6' is a 1x3 vector, whereas 'Input Port 6' of the Mux block expects a value of a different dimension.
A Mux block is used to combine multiple signals into a single vector, and a mismatch in dimensions occurs if the inputs to the Mux block are not of compatible sizes.
To fix the issue, review the dimensions required by the Mux block and match them with the output from 'nn/powergui/EquivalentModel1/Gates/From6'. In Simulink, you can check the signal dimensions by double-clicking on the blocks and reviewing their properties. If you wish to select only a part of the output from 'Form6' block, consider using the 'Selector' block.
Kindly refer to the following documentation on 'Selector block' for better understanding-
I hope this helps and you are able to proceed further.
0 Comments
See Also
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!