Fuzzy Logic Toolbox | ![]() ![]() |
Transform Mamdani FIS into a Sugeno FIS.
Syntax
Description
mam2sug
(mam_fis) transforms a (not necessarily 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.
Examples
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 | ![]() |