31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mf2mf<br />

Purpose<br />

Syntax<br />

Description<br />

Translate parameters between membership functions<br />

outParams = mf2mf(inParams,inType,outType)<br />

This function translates any built-in membership function type into<br />

another, in terms of its parameter set. In principle, mf2mf mimics the<br />

symmetry points for both the new and old membership functions.<br />

Caution<br />

Occasionally this translation results in lost information, so that if the<br />

output parameters are translated back into the original membership<br />

function type, the transformed membership function does not look the<br />

same as it did originally.<br />

The input arguments for mf2mf are as follows:<br />

• inParams: the parameters of the membership function you are<br />

transforming<br />

• inType: a string name for the type of membership function you are<br />

transforming<br />

• outType: a string name for the new membership function you are<br />

transforming to<br />

Examples<br />

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

mfp1 = [1 2 3];<br />

mfp2 = mf2mf(mfp1,'gbellmf','trimf');<br />

plot(x,gbellmf(x,mfp1),x,trimf(x,mfp2))<br />

4-51

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

Saved successfully!

Ooh no, something went wrong!