Implementation of the truth table for fuzzy control

조회 수: 1 (최근 30일)
Milad
Milad 2024년 12월 15일
답변: Malay Agarwal 2024년 12월 31일
Hello. The following truth table is required for fuzzy control. For this purpose, it is necessary to use a look-up table. Please guide me to design the FIS.
  댓글 수: 2
Walter Roberson
Walter Roberson 2024년 12월 15일
To confirm:
If input 1 is exactly 0.32 and input 2 is exactly 0.39, then the output is to be 1/2 ? And if input 1 is 0.319999 instead, then the output is to be NaN ?
Milad
Milad 2024년 12월 15일
For clarification, the fuzzy surface is attached.

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

채택된 답변

Malay Agarwal
Malay Agarwal 2024년 12월 31일
Hi @Milad,
I have attached a function which creates a fuzzy system. You can use it as follows:
fis = create_fis();
figure;
opts = gensurfOptions;
opts.InputIndex = [2, 1];
gensurf(fis, opts);
Here are some details about the function:
  • The "mamfis" function is used to initialize an empty fuzzy system.
  • the "addInput" function is used to add the inputs.
  • The "addOutput" function is used to add the output.
  • A bunch of "addMF" function calls are used to add the appropriate membership functions to the fuzzy system.
  • Finally, the "addRule" function is used to add the necessary relationships between the different membership functions.
Please note that the fuzzy system here may not be an exact match to the expected one. If that is the case, you will have to modify the membership rules to make the system match exactly.
Refer to the documentation of "addMF" and "addRule" for more details on how you can do this.
Hope this helps!

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by