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

1 次查看(过去 30 天)
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.

回答(1 个)

Sam Chak
Sam Chak 2025-5-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.

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by