- https://in.mathworks.com/help/fuzzy/building-fuzzy-inference-systems-using-custom-functions.html
- https://in.mathworks.com/help/fuzzy/anfis.html
How can I use custom membership functions in ANFIS?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to use custom MFs in anfis, instead of the preset bellMF?
For example in the example provided, we have:
load fuzex1trnData.dat
fis = anfis(fuzex1trnData);
Now how do I use the FIS (customfis) with the custom MF that I created using FuzzyLogicDesigner?
Any help is appreciated.
댓글 수: 0
답변 (1개)
Amritesh
2022년 6월 26일
If you have already made FIS, then use fis = anfis(trainingData,options) and in options use that custom FIS.
If not then, first add custom membership function to a FIS like
myFIS = addMF(myFIS,"input1","custmf1",[0 1 2 4 6 8 9 10],'Name',"customMF1");
Documentation Links:
Hope this solves your problem.
댓글 수: 2
Amritesh
2022년 6월 26일
You can define an initial FIS structure using genfisOptions
genOpt = genfisOptions('GridPartition');
genOpt.NumMembershipFunctions = num;
genOpt.InputMembershipFunctionType = 'cumstomMF1'; % Here you use your custom MF
inFIS = genfis(x,y,genOpt);
You can use name of a custom membership function in the current working folder or on the MATLAB® path in InputMembershipFunctionType.
Have a look at https://in.mathworks.com/help/fuzzy/genfisoptions.html
And, then configure the ANFIS training options
opt = anfisOptions('InitialFIS',inFIS);
참고 항목
카테고리
Help Center 및 File Exchange에서 Fuzzy Inference System Tuning에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!