31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mam2sug<br />

Purpose<br />

Syntax<br />

Description<br />

Examples<br />

Transform Mamdani <strong>Fuzzy</strong> Inference System into Sugeno <strong>Fuzzy</strong><br />

Inference System<br />

sug_fis=mam2sug(mam_fis)<br />

mam2sug (mam_fis)transforms a (not necessarily a single output)<br />

Mamdani FIS structure mam_fis into a Sugeno FIS structure sug_fis.<br />

The returned Sugeno system has constant output membership<br />

functions. These constants are determined by the centroids of the<br />

consequent membership functions of the original Mamdani system. The<br />

antecedent remains unchanged.<br />

mam_fismat = readfis('mam22.fis');<br />

sug_fismat = mam2sug(mam_fismat);<br />

subplot(2,2,1); gensurf(mam_fismat, [1 2], 1);<br />

title('Mamdani system (Output 1)');<br />

subplot(2,2,2); gensurf(sug_fismat, [1 2], 1);<br />

title('Sugeno system (Output 1)');<br />

subplot(2,2,3); gensurf(mam_fismat, [1 2],2);<br />

title('Mamdani system (Output 2)');<br />

subplot(2,2,4); gensurf(sug_fismat, [1 2],2);<br />

title('Sugeno system (Output 2)');<br />

4-50

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!