| Fuzzy Logic Toolbox | ![]() |
Transform Mamdani FIS into a Sugeno FIS
sug_fis=mam2sug(mam_fis)
mam2sug (mam_fis)transforms a (not necessarily a single output) Mamdani FIS structure mam_fis into a Sugeno FIS structure sug_fis. The returned Sugeno system has constant output membership functions. These constants are determined by the centroids of the consequent membership functions of the original Mamdani system. The antecedent remains unchanged.
mam_fismat = readfis('mam22.fis');
sug_fismat = mam2sug(mam_fismat);
subplot(2,2,1); gensurf(mam_fismat, [1 2], 1);
title('Mamdani system (Output 1)');
subplot(2,2,2); gensurf(sug_fismat, [1 2], 1);
title('Sugeno system (Output 1)');
subplot(2,2,3); gensurf(mam_fismat, [1 2], 2);
title('Mamdani system (Output 2)');
subplot(2,2,4); gensurf(sug_fismat, [1 2], 2);
title('Sugeno system (Output 2)');
| getfis | mf2mf | ![]() |
© 1994-2005 The MathWorks, Inc.