Error in port widths or dimensions.

조회 수: 9 (최근 30일)
Mustaqim Nurhady
Mustaqim Nurhady 2024년 1월 13일
댓글: Mustaqim Nurhady 2024년 1월 14일
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
Binaya
Binaya 2024년 1월 14일
편집: Binaya 2024년 1월 14일
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 2024년 1월 14일
Hi Binaya,
I have upload the "fis" file in the question.
Thank you for the info.

댓글을 달려면 로그인하십시오.

답변 (1개)

Paul
Paul 2024년 1월 14일
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.
  댓글 수: 1
Mustaqim Nurhady
Mustaqim Nurhady 2024년 1월 14일
Hi Paul,
Thanks for heads up! I'll try ASAP.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Fuzzy Logic in Simulink에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by