Main Content


Open Membership Function Editor


Using the Membership Function Editor, you specify the range of each input and output variables. Then, for each variable, you define the number of membership functions, the type of each membership function, and the membership function parameters.

The Fuzzy Logic Designer app consists of several interactive interfaces for creating a fuzzy inference system (FIS), including the Membership Function Editor. For more information on interactively creating fuzzy systems, see Build Fuzzy Systems Using Fuzzy Logic Designer.

mfedit opens the Membership Function Editor with no fuzzy inference system loaded.


mfedit(fis) opens the Membership Function Editor and loads the fuzzy inference system fis.

mfedit(fileName) opens the Membership Function Editor and loads a fuzzy inference system from the file specified by fileName.


collapse all

Load or create a fuzzy inference system object. For this example, load the fuzzy system from a file.

fis = readfis('tipper');

Open the Membership Function Editor for this fuzzy system.


Figure Membership Function Editor: tipper contains 4 axes and other objects of type uimenu, uicontrol. Axes 1 contains 4 objects of type line, patch. Axes 2 contains 4 objects of type line, patch. Axes 3 contains 4 objects of type line, patch. Axes 4 with title Membership function plots contains 8 objects of type line, text.

Input Arguments

collapse all

Fuzzy inference system, specified as either a mamfis or sugfis object in the MATLAB® workspace.

File name specified as a string or character vector with or without the .fis extension. This file must be in the current working directory or on the MATLAB path.

Compatibility Considerations

expand all

Warns starting in R2019b

Introduced before R2006a