Main Content

Fuzzy Logic Designer

Design, test, and tune fuzzy inference systems

Description

The Fuzzy Logic Designer app lets you design, test, and tune a fuzzy inference system (FIS) for modeling complex system behavior.

Using this app, you can:

  • Design Mamdani and Sugeno FISs.

  • Design type-1 and type-2 FISs.

  • Tune the rules and membership functions of a FIS or FIS tree.

  • Design and tune FIS trees. (since R2023b)

  • Analyze the behavior of a fuzzy system, including:

    • View rule inference process for given input values.

    • View output surface maps for fuzzy inference systems.

    • Compare FIS outputs with corresponding output values from testing data. (since R2023a)

    • View error distributions across input ranges based on testing data. (since R2023a)

  • Export FIS designs to the MATLAB® workspace.

Fuzzy Logic Designer app

Open the Fuzzy Logic Designer App

  • MATLAB Toolstrip: On the Apps tab, under Control System Design and Analysis, click the app icon.

  • MATLAB command prompt: Enter fuzzyLogicDesigner.

Examples

expand all

In Fuzzy Logic Designer, under Import > Import Fuzzy Inference System from Workspace, click a FIS or FIS tree.

On the left side of the app toolstrip, in the File section, in the Import drop-down menu, the cursor hovers over a FIS under the Import Fuzzy Inference System from Workspace selection.

A new Fuzzy Logic Designer instance opens and loads the selected FIS.

In Fuzzy Logic Designer, select Import > Import Fuzzy Inference System from File.

On the left side of the app toolstrip, in the File section, the cursor hovers over the Import Fuzzy Inference System from File selection in the Import drop-down menu.

Then, in the Import Fuzzy Inference System dialog box, select a FIS or MAT file and click Open.

Using Fuzzy Logic Designer, you can convert between Mamdani and Sugeno systems and between type-1 and type-2 systems.

When you convert a FIS, the app adds the converted FIS to the Design Browser. To make the converted system active, select it in the Design Browser and click Set Active Design.

For more information on converting between type-1 and type2 systems, see convertToType1 and convertToType2.

For more information on converting between Mamdani and Sugeno systems, see Mamdani and Sugeno Fuzzy Inference Systems.

Related Examples

Programmatic Use

expand all

fuzzyLogicDesigner opens the Fuzzy Logic Designer app and loads the Getting Started dialog box, where you can open an existing FIS or create an initial FIS structure. For more information, see Get Started Using Fuzzy Logic Designer.

fuzzyLogicDesigner(fis) opens the app and loads the fuzzy inference system fis. fis can be any mamfis, sugfis, mamfistype2, sugfistype2, or fistree object in the MATLAB workspace or on the path.

fuzzyLogicDesigner(fileName) opens the app and loads a fuzzy inference system from a file. fileName is the name of one of the following types of files on the MATLAB path.

  • FIS file (*.fis) — Load a mamfis, sugfis, mamfistype2, or sugfistype2 object.

  • MAT file (*.mat) — The MAT file must contain only one mamfis, sugfis, mamfistype2, sugfistype2, or fistree object.

Version History

Introduced in R2014b

expand all