Error in port widths or dimensions.

9 views (last 30 days)
Mustaqim Nurhady
Mustaqim Nurhady on 13 Jan 2024
Commented: Mustaqim Nurhady on 14 Jan 2024
Error in port widths or dimensions. 'Output Port 1' of 'FuzzyPID/Add1' has 3 elements. This port does not accept the dimensions (or orientation) specified by the output signal.
and
Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 1' of 'FuzzyPID/Transfer Fcn'.
I am using MATLAB R2022b.
Would you mind for providing the solutions for above errors, please.
Thank you alot in advance.
  2 Comments
Binaya
Binaya on 14 Jan 2024
Edited: Binaya on 14 Jan 2024
Hi Mustaqim
Please provide all files required to run your model. The current model needs a variable "fis" which is not present in the provided file.
Mustaqim Nurhady
Mustaqim Nurhady on 14 Jan 2024
Hi Binaya,
I have upload the "fis" file in the question.
Thank you for the info.

Sign in to comment.

Answers (1)

Paul
Paul on 14 Jan 2024
If it makes sense that the outputs of each Fuzzy Logic Controller is 3, then there is a problem at the the output of the highlighted sum block. The output of that block would be of size 3, but the the follwing Transfer Fcn block can only accept scalar inputs. So you'd need to demux the output of the sum and apply a separate Transfer Fcn to each of the three individual scalar signals. But then it looks like all of the feedback loops might be intended to apply to scalar signals, so there will still be a problem of how to combine the three outputs from the Transfer Fcn blocks into a single scalar signal for the feedback.

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Tags

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!