Code covered by the BSD License  

Highlights from
Fuzzy Relational Calculus Toolbox, Rel.1.01

image thumbnail
from Fuzzy Relational Calculus Toolbox, Rel.1.01 by Yordan Kyosev & Ketty Peeva
The toolbox provides functions and original algorithms for solving direct and inverse problems.

alf=fuzzy_alpha(A,B)
function alf=fuzzy_alpha(A,B)
% Calculates alpha product of matrices A and B
for i=1:length(A(:,1))
    for j=1:length(B(1,:))
        for k=1:length(B(:,1))
            if A(i,k)<=B(k,j)
                alfa_k(k)=1;
            else
                alfa_k(k)=B(k,j);
            end
            alf(i,j)=min(alfa_k);
        end
    end
end

%disp_f('Alfa Composition of A and B is',alf);

Contact us at files@mathworks.com