Fuzzy Logic Toolbox    
sffis

Fuzzy inference S-function for Simulink.

Syntax

Description

In most cases, the Fuzzy Logic Controller block generates a custom block diagram for your FIS. The Fuzzy Wizard, however, cannot handle FIS with custom membership functions or with AND, OR, IMP, and AGG functions outside of the following list:

In these cases, the Fuzzy Logic Controller block uses the S-function sffis to simulate the FIS. For more discussion of this topic, see Building Your Own Fuzzy Simulink Models.

The MEX-file sffis is used by Simulink to undertake the calculation normally performed by evalfis. It has been optimized to work in the Simulink environment. This means, among other things, that sffis builds a data structure in memory during the initialization phase of a Simulink simulation, which it then continues to use until the simulation is complete.

The arguments t, x, and flag are standard Simulink S-function arguments (see "S-Functions" in the Using Simulink documentation). The argument u is the input to the MATLAB workspace FIS structure, fismat. If, for example, there are two inputs to fismat, then u will be a two-element vector.

See Also

evalfis, fuzblock


  setfis showfis