Code covered by the BSD License  

Highlights from
Adaptive Neuro-Fuzzy Inference Systems (ANFIS) Library for Simulink

image thumbnail

Adaptive Neuro-Fuzzy Inference Systems (ANFIS) Library for Simulink

by

 

09 Apr 2012 (Updated )

This Simulink library contains six ANFIS/CANFIS system variations.

g(s,gamma);
function y = g(s,gamma);

rows = size(s,1);
columns = size(s,2);
y = zeros(rows,columns);
for i=1:rows
   for j=1:columns
        if s(i,j).*gamma>1
            y(i,j) = 1;
        elseif 0 <= s(i,j).*gamma && s(i,j).*gamma <= 1
            y(i,j) = s(i,j).*gamma;
        elseif s(i,j).*gamma<0
            y(i,j) = 0;
        end
    end
end

return 

Contact us