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.

sffis<br />

Purpose<br />

Syntax<br />

Description<br />

<strong>Fuzzy</strong> inference S-function for Simulink software<br />

output = sffis(t,x,u,flag,fismat)<br />

In most cases, the <strong>Fuzzy</strong> <strong>Logic</strong> Controller block generates a custom<br />

block diagram for your FIS. The <strong>Fuzzy</strong> Wizard, however, cannot handle<br />

FIS with custom membership functions or with AND, OR, IMP, and<br />

AGG functions outside of the following list:<br />

• orMethod:max<br />

• andMethod: min,prod<br />

• impMethod: min,prod<br />

• aggMethod: max<br />

In these cases, the <strong>Fuzzy</strong> <strong>Logic</strong> Controller block uses the S-function<br />

sffis to simulate the FIS. For more discussion of this topic, see<br />

“Building Your Own <strong>Fuzzy</strong> Simulink Models” on page 2-93.<br />

The MEX-file sffis is used by Simulink to undertake the calculation<br />

normally performed by evalfis. It has been optimized to work in<br />

the Simulink environment. sffis builds a data structure in memory<br />

during the initialization phase of a Simulink simulation, which it then<br />

continues to use until the simulation is complete.<br />

The arguments t, x, andflag are standard Simulink S-function<br />

arguments (see Writing S-Functions in the Simulink documentation).<br />

The argument u is the input to the MATLAB workspace FIS structure,<br />

fismat. If, for example, there are two inputs to fismat, thenu is a<br />

two-element vector.<br />

See Also<br />

evalfis, fuzblock<br />

4-74

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

Saved successfully!

Ooh no, something went wrong!