How to save Type 2 Fuzzy system?

조회 수: 5 (최근 30일)
wiam Ayrir
wiam Ayrir 2020년 7월 6일
댓글: wiam Ayrir 2020년 7월 9일
In the example Fuzzy PID Control with Type-2 FIS, there is nothing that explain how to save the converted fuzzy type 1 system (the fis2). I tried to do the example but I could not manage to find the fis2. Am I missing something?

채택된 답변

Subhadeep Koley
Subhadeep Koley 2020년 7월 6일
HI,
After you convert fis1 to fis2, use the code below to save the fis2 system. The below code opens a dialog box for saving the FIS. In this dialog box, specify the desired name and location of the .fis file.
writeFIS(fis2)
Again, to load the saved fis2 use the code below
fis2 = readfis(fileName) % Enter the filename of your fis file
  댓글 수: 1
wiam Ayrir
wiam Ayrir 2020년 7월 9일
Thank you so much for your answer, actually I used this code but didn't work, but after your answer I was sure it is the right code so I figured out that I was saving the initital code file to .m file and not .mlx.
Thank you again ^^

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by