Anfis is one of the toolbox on matlab.Its most important on research works.Anfis is collaboration of Neural network and Fuzzy logic.Its mostly use in classification section.
In below we give some examples of Anfis on Matlab
In goto your matlab command window then type "anfisedit" then you sea editor of anfis.
In below we give some examples of Anfis on Matlab
In goto your matlab command window then type "anfisedit" then you sea editor of anfis.
In coding wise you have use following commands and syntax's.
Training Section code
input = [0 1 2 3 4 5 6 7 8 9]; % Input data
output = [1 1 1 1 1 2 2 2 2 2];% data class
trnData = [input' output'];
numMFs = 5;
mfType = 'gbellmf';
epoch_n = 20;
in_fis = genfis1(trnData,numMFs,mfType);
out_fis = anfis(trnData,in_fis,20);
then you sea following output
Testing a Anfis
Just use evalfis command.Its predefined function on matlab for evaluating a fuzzy.
>> evalfis(1,out_fis)
ans = 1.0000
>> evalfis(9,out_fis)
ans = 2.0000
'ans' is the output of anfis.
Related Search : Matlab anfis code example,Adaptive Neuro-Fuzzy Inference Systems Matlab code,Anfis matlab examples,Neuro-fuzzy matlab code,Neuro-fuzzyMatlab examples
Thanks for sharing matlab tips.Keep update your blog.
ReplyDeleteThank u for your support...
Delete