This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Fuzzy Logic Controller

Evaluate fuzzy inference system

  • Library:
  • Fuzzy Logic Toolbox


The Fuzzy Logic Controller block implements a fuzzy inference system (FIS) in Simulink®. You specify the FIS to evaluate using the FIS name parameter.

For more information on fuzzy inference, see Fuzzy Inference Process.

To display the fuzzy inference process in the Rule Viewer during simulation, use the Fuzzy Logic Controller with Ruleviewer block.



expand all

For a single-input fuzzy inference system, the input is a scalar. For a multi-input fuzzy system, combine the inputs into a vector signal using blocks such as:


expand all

For a single-output fuzzy inference system, the output is a scalar. For a multi-output fuzzy system, the output is a vector. To split system outputs into scalar signals, use the Demux block.


expand all

Fuzzy inference system to evaluate, specified as one of the following:

  • Structure — Specify the name of an FIS structure in the MATLAB® workspace.

    To create a fuzzy inference system, you can:

  • File name — Specify the name of a .fis file in the current working folder or on the MATLAB path. You must include the file extension in the file name.

    To save a fuzzy inference system to a .fis file:

    • In Fuzzy Logic Designer or Neuro-Fuzzy Designer, select File > Export > To File.

    • At the command line, use writefis.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced before R2006a

Was this topic helpful?