Fuzzy logic - help required urgently - Programmers Heaven

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

#### Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

# Fuzzy logic - help required urgently

Posts: 1Member
Hi .. I am new to the fuzzy logic systems. I studied it a little and developed one programme in Matlab .
It seems fine to me but it doesnt work correctly for some inputs.
It gives a warning "Total area is zero in defuzzCentroid() for output 1"
"Average of the range of this output variable is used as the output value"

I am confused whether some problem in Logic or something else.Logic seems fine to me.
Can you please see whats the problem in logic or implementation.

I have 3 inputs and 1 output.

function [FaultIndex] = indexcal(NormRMS,dstatVal,Difference)

d = newfis('Fault1');

RuleList3=[1 1 1 1 1 1 ; 2 2 2 2 1 1; 3 3 3 4 1 1;...
2 3 3 3 1 1; 3 2 3 3 1 1; 3 3 2 3 1 1;4 0 0 4 1 1; 0 0 4 3 1 1];

[FaultIndex] = evalfis([NormRMS dstatVal Difference],d);

My inputs are : 1.0192 0.04 1.4305

So it gives result as 0.5 i.e. average of the range [ 0 1] though according to the inputs and membership
functions , output should be much less.

Thanks:-)