LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compare fuzzy inference in labview and matlab

Dear all

 

 I made a fuzzy block in Labview and now I want to make the same system in MATLAB although I tried to set everything the same but the output are not the same in Labview and MATLAB.

I use Labview  8.2.1 and MATLAB 7.7 which is equiped with fuzzy toolbox 2.2.8.

The fuzzy system parameters in MATLAB are:


       andMethod: 'min'
        orMethod: 'max'
    defuzzMethod: 'centroid'
       impMethod: 'min'
       aggMethod: 'max'

 

and in Labview:

 Defuzzification method: center of gravity (which I think should be the same as 'centroid')

Inference method: max-min

 

All the rules and fuzzy terms are the same and I checked the fired rules which are the same with same weight for each entry.

 

Do yoou have any idea why these two are different?

 

Best regards

Afshin

 

0 Kudos
Message 1 of 2
(2,914 Views)
I don't have much for specifics, but the two programs implement the fuzzy logic algorithms differently.  Because of this, you will not get the same output from both programs.
Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,897 Views)