필터 지우기
필터 지우기

How to put the fis I designed in Fuzzy Logic Designer App to Simulink?

조회 수: 10 (최근 30일)
JingChong Ning
JingChong Ning 2023년 9월 25일
댓글: Sam Chak 2023년 9월 28일
I am trying to create a fuzzy logic system and have created the file. I specified the range and shape of the input and out put membership functions, set up the rules, and saved it as an .fis file. But how do I move this thing into my simulink model? Do I just double click the "Fuzzy Logic Controller" block, and then change the FIS name into the name I saved my .fis file as?

답변 (2개)

Pratyush
Pratyush 2023년 9월 26일
I understand that you have a FIS file and you want to use it in your simulink model.
You can perform the following steps:
  1. Drag and drop the "Fuzzy Logic Controller" block into your Simulink model.
  2. Double-click on the "Fuzzy Logic Controller" block to open its block parameters dialog box.
  3. To implement a fuzzy inference system, specify the FIS name parameter of the Fuzzy Logic Controller block as the name of a FIS object in the MATLAB® workspace.
You can refer to the example in following document for more details: Simulate Fuzzy Inference Systems in Simulink - MATLAB & Simulink - MathWorks India
  댓글 수: 1
JingChong Ning
JingChong Ning 2023년 9월 27일
When I designed this FIS in the app, it recieves two different input and outputs 1. But even after I change the name into the fis I designed, the block still has only 1 input port though. Could you tell me why? The input should look like this:

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


Sam Chak
Sam Chak 2023년 9월 26일
Follow these steps, and it should work. Suppose you have designed a fuzzy logic system and named it "myFuzzySys.fis." You have saved an existing Simulink model file (mySimModel.slx) in a directory called "myFolder." Put the .fis file together with the .slx file in the same folder, as shown in Fig. 1. I presume that you already have the Fuzzy Logic Controller block in the Simulink model file, as shown in Fig. 2. Open the Block Parameters menu and type the FIS name, 'myFuzzySys.fis' (with the apostrophe marks), exactly as shown in Fig. 3.
Fig. 1
Fig. 2
Fig. 3
  댓글 수: 3
JingChong Ning
JingChong Ning 2023년 9월 27일
My fis requires 2 input though, would the use of mux block creates the same effect as this:
?

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

카테고리

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

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by