Fuzzy Logic Controller Block in Simulink Doesn't Show Two Inputs

조회 수: 12 (최근 30일)
ali
ali 2025년 5월 4일
댓글: ali 2025년 5월 5일
Hello everyone,
I created a fuzzy logic controller using MATLAB's Fuzzy Logic Designer App. My controller has two input variables and one output. After designing and testing it, I exported it to the workspace as a variable (named fis).
However, when I switch to Simulink and drag in the Fuzzy Logic Controller block from the Fuzzy Logic Toolbox, I try to load my controller by typing the name fis into the block's parameters.
The problem is:
The block only shows one input, even though my fuzzy system was designed with two inputs.
I expected the block to automatically configure for two inputs and one output, based on the .fis structure.
I would appreciate any guidance on:
  • Why the block isn't recognizing both inputs
  • How to properly load a multi-input .fis file into Simulink
  • Whether I need to use a specific block (not the Function Block version)
Thanks in advance for your help!

채택된 답변

Sam Chak
Sam Chak 2025년 5월 4일
Hi @ali
If there is more than one input, you need to use the Mux block to combine the input signals into a virtual signal vector, allowing you to feed it into the input port of the Fuzzy Controller block.
Please let me know if this approach works for you.
  댓글 수: 5
Sam Chak
Sam Chak 2025년 5월 4일
Please provide an update if you have resolved the original issue.
You can, but ensure that the ranges of the input variables are within those defined in the fuzzy system. This is very important.
ali
ali 2025년 5월 5일
thanks yor anwser is useful

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by