What should I do if I get "Error: Specified FIS file contains invalid type-1 membership function"

I preapered an anfis file, named "mppt.fis", and used it with the code "getFISCodeGenerationData" in an embeded mathlab function in simulink. When I ran simulink, firstly it worked with no problem. Then, I changed the the line of the code "getFISCodeGenerationData" in an embeded mathlab function. But then it didn't work. I had made no change in the fis file. Everytime when I tried to run simulink, I got the error: "Specified FIS file contains invalid type-1 membership function". However, It works in command window with no problem. It evaluates answers in command window without any problem.

Answers (1)

This error most likely indicates that your FIS file may have been corrupted for an unknown reason when the modified fisOut = getFISCodeGenerationData(fis) function is called. Perhaps you have inadvertently modified the fields of fisOut, which can lead to unexpected results that corrupted the type-1 membership function in the FIS file.
If the FIS file cannot be repaired, it may be more effective to redesign the system by creating a new fuzzy system.

Categories

Asked:

on 4 May 2021

Answered:

on 1 May 2025

Community Treasure Hunt

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

Start Hunting!