Fuzzy Logic Designer
Design and test fuzzy inference systems
Description
The Fuzzy Logic Designer app lets you design and test 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.
Add or remove input and output variables.
Specify input and output membership functions.
Define fuzzy if-then rules.
Select fuzzy inference functions for:
And operations
Or operations
Implication
Aggregation
Defuzzification
Adjust input values and view associated fuzzy inference diagrams.
View output surface maps for fuzzy inference systems.
Export FIS designs to the MATLAB® workspace.
More
Limitations
The Fuzzy Logic Designer app does not support the following tasks.
FIS tree creation — Instead, create FIS trees at the MATLAB command line using
fistree
objects. You can create the component FIS objects using Fuzzy Logic Designer and export them to the MATLAB workspace.Automatic tuning of FIS rules and parameters — Instead, tune fuzzy systems at the MATLAB command line using
tunefis
. You can create the initial FIS structure using Fuzzy Logic Designer and export it to the MATLAB workspace for tuning.

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
Import FIS from Workspace
In Fuzzy Logic Designer, under Import > Import Fuzzy Inference System from Workspace, click the fuzzy inference system.
A new Fuzzy Logic Designer instance opens and loads the selected FIS.
Import FIS from File
In Fuzzy Logic Designer, select Import > Import Fuzzy Inference System from Workspace.
Then, in the Import Fuzzy Inference System dialog box, select a FIS file and click Open.
Convert FIS
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
fuzzyLogicDesigner
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
)
fis
)fuzzyLogicDesigner(
opens the app and loads the
fuzzy inference system fis
)fis
. fis
can be any
mamfis
, sugfis
,
mamfistype2
, or sugfistype2
object in
the MATLAB workspace.
fuzzyLogicDesigner(fileName
)
fileName
)fuzzyLogicDesigner(
opens the app and loads
a fuzzy inference system from a file. fileName
)fileName
is the name of a
FIS (*.fis
) file on the MATLAB path.
To save a fuzzy inference system to a FIS file:
In Fuzzy Logic Designer, under Save, select the fuzzy inference system.
At the command line, use
writeFIS
.
Version History
Introduced in R2014bR2022b: Redesigned Fuzzy Logic Designer App
The redesigned app streamlines workflows for interactively building fuzzy inference systems. Using the updated app, you can:
Design both Mamdani and Sugeno fuzzy inference systems
Design fuzzy inference systems with either type-1 or type-2 membership functions
R2019b: Support for fuzzy inference system structures will be removed
Support for representing fuzzy inference systems as structures will be removed in
a future release. Use mamfis
and
sugfis
objects with this function instead. To convert existing fuzzy inference system
structures to objects, use the convertfis
function.
This change was announced in R2018b. Using fuzzy inference system structures with this app issues a warning starting in R2019b.
R2014b: Command to open app renamed to fuzzyLogicDesigner
Previously, the command to open the app was fuzzy
.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)