image thumbnail
from Autonomous Navigation by vikram mutneja
performs autonomous navigation of car like vehicle using type-2 fuzzy logic system

stear =inference(xpos,phi)
function stear =inference(xpos,phi)
 
for i=1:35
     
    [r y(i)]=fire_rule(i,xpos,phi);
    
    for j=1:10
        stear(i,j)=r(j)*y(i);
    end
    
end


stear=sum(stear);
stear=stear/sum(y);
stear=mean(stear);


Contact us at files@mathworks.com