| Fuzzy Logic Toolbox | ![]() |
Remove membership function from an FIS
fis = rmmf(fis,'varType',varIndex,'mf',mfIndex)
fis = rmmf(fis,varType,varIndex,'mf',mfIndex) removes the membership function, mfIndex, of variable type 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.
The argument 'mf' is a string representing the membership function.
mfIndex is an integer for the index of the membership function. This index represents the order in which the membership functions are listed.
a = newfis('mysys');
a = addvar(a,'input','temperature',[0 100]);
a = addmf(a,'input',1,'cold','trimf',[0 30 60]);
getfis(a,'input',1)
returns
Name = temperature
NumMFs = 1
MFLabels =
cold
Range = [0 100]
b = rmmf(a,'input',1,'mf',1);
getfis(b,'input',1)
returns
Name = temperature
NumMFs = 0
MFLabels =
Range = [0 100]
addmf, addrule, addvar, plotmf, rmvar
| readfis | rmvar | ![]() |
© 1994-2005 The MathWorks, Inc.