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

1 view (last 30 days)
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)

Sam Chak
Sam Chak on 1 May 2025
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

Find more on Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!