| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Fuzzy Logic Toolbox |
| Contents | Index |
| Learn more about Fuzzy Logic Toolbox |
fis2 = rmvar(fis,'varType',varIndex) [fis2,errorStr] = rmvar(fis,'varType',varIndex)
fis2 = rmvar(fis,'varType',varIndex) removes the variable 'varType', of index varIndex, from the fuzzy inference system associated with the workspace FIS structure, fis:
The string varType must be 'input' or 'output'.
varIndex is an integer for the index of the variable. This index represents the order in which the variables are listed.
[fis2,errorStr] = rmvar(fis,'varType',varIndex) returns any error messages to the string, errorStr.
This command automatically alters the rule list to keep its size consistent with the current number of variables. You must delete from the FIS any rule that contains a variable you want to remove, before removing it. You cannot remove a fuzzy variable currently in use in the rule list.
a = newfis('mysys');
a = addvar(a,'input','temperature',[0 100]);
getfis(a)
returns
Name = mysys
Type = mamdani
NumInputs = 1
InLabels =
temperature
NumOutputs = 0
OutLabels =
NumRules = 0
AndMethod = min
OrMethod = max
ImpMethod = min
AggMethod = max
DefuzzMethod = centroid
ans =
mysys
b = rmvar(a,'input',1);
getfis(b)
returns
Name = mysys
Type = mamdani
NumInputs = 0
InLabels =
NumOutputs = 0
OutLabels =
NumRules = 0
AndMethod = min
OrMethod = max
ImpMethod = min
AggMethod = max
DefuzzMethod = centroid
ans =
mysys
![]() | rmmf | ruleedit | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |