removeInput
Remove input variable from fuzzy inference system
Description
Examples
Remove Input Variable from Fuzzy Inference System
Load fuzzy system.
fis = readfis("tipper");
View the input variables of fis
.
fis.Inputs
ans = 1x2 fisvar array with properties: Name Range MembershipFunctions Details: Name Range MembershipFunctions _________ _______ ___________________ 1 "service" 0 10 {1x3 fismf} 2 "food" 0 10 {1x2 fismf}
View the rules of fis
.
fis.Rules
ans = 1x3 fisrule array with properties: Description Antecedent Consequent Weight Connection Details: Description __________________________________________________________ 1 "service==poor | food==rancid => tip=cheap (1)" 2 "service==good => tip=average (1)" 3 "service==excellent | food==delicious => tip=generous (1)"
Remove the service
input variable.
fis = removeInput(fis,"service");
View the updated input variables.
fis.Inputs
ans = fisvar with properties: Name: "food" Range: [0 10] MembershipFunctions: [1x2 fismf]
View the updated rules.
fis.Rules
ans = 1x2 fisrule array with properties: Description Antecedent Consequent Weight Connection Details: Description _____________________________________ 1 "food==rancid => tip=cheap (1)" 2 "food==delicious => tip=generous (1)"
service
has been removed from the variables and rules of fis
.
Input Arguments
fisIn
— Fuzzy inference system
mamfis
object | sugfis
object | mamfistype2
object | sugfistype2
object
Fuzzy inference system, specified as one of the following:
mamfis
object — Mamdani fuzzy inference systemsugfis
object — Sugeno fuzzy inference systemmamfistype2
object — Type-2 Mamdani fuzzy inference systemsugfistype2
object — Type-2 Sugeno fuzzy inference system
inputName
— Input variable name
string | character vector
Input variable name, specified as a string or character vector.
Output Arguments
fisOut
— Updated fuzzy inference system
mamfis
object | sugfis
object | mamfistype2
object | sugfistype2
object
Updated fuzzy inference system, returned as one of the following objects.
mamfis
object — Mamdani fuzzy inference systemsugfis
object — Sugeno fuzzy inference systemmamfistype2
object — Type-2 Mamdani fuzzy inference systemsugfistype2
object — Type-2 Sugeno fuzzy inference system
fisOut
has the same properties as fisIn
except:
The input variable with the specified name is removed.
The specified input variable is removed from any fuzzy rules. If a rule has only the specified input variable in its antecedent, then the entire rule is removed. If a rule has more than one input variable in its antecedent, then the specified input variable is removed from the antecedent.
Version History
Introduced in R2018bR2018b: Replaces rmvar
This function replaces rmvar
for removing input variables from a fuzzy
inference system.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)