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.

evalmf<br />

Purpose<br />

Syntax<br />

Description<br />

Examples<br />

Generic membership function evaluation<br />

y = evalmf(x,mfParams,mfType)<br />

evalmf evaluates any membership function, where x is the variable<br />

range for the membership function evaluation, mfType is a membership<br />

function from the toolbox, and mfParams are appropriate parameters<br />

for that function.<br />

If you want to create your own custom membership function, evalmf<br />

still works, because it evaluates any membership function whose name<br />

it does not recognize.<br />

x=0:0.1:10;<br />

mfparams = [2 4 6];<br />

mftype = 'gbellmf';<br />

y=evalmf(x,mfparams,mftype);<br />

plot(x,y)<br />

xlabel('gbellmf, P=[2 4 6]')<br />

1<br />

0.75<br />

0.5<br />

0.25<br />

0<br />

0 2 4 6 8 10<br />

gbellmf, P = [2 4 6]<br />

See Also<br />

dsigmf, gaussmf, gauss2mf, gbellmf, evalmf, mf2mf, pimf, psigmf,<br />

sigmf, smf, trapmf, trimf, zmf<br />

4-17

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

Saved successfully!

Ooh no, something went wrong!