Main Content

ruleedit

Open Rule Editor

Description

Use the Rule Editor to view or modify the rules of your fuzzy system. To define rules, you must specify the input and output variables of your FIS and their corresponding membership functions.

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

example

ruleedit(fis) opens the Rule Editor and loads the fuzzy inference system fis.

ruleedit(fileName) opens the Rule Editor and loads a fuzzy inference system from the file specified by fileName.

Examples

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 Rule Editor for this fuzzy system.

ruleedit(fis)

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