Fuzzy Logic Toolbox | ![]() ![]() |
Remove membership function from an FIS.
Syntax
Description
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
:
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.
mfIndex
is an integer for the index of the membership function. This index represents the order in which the membership functions are listed.
Examples
a = newfis('mysys'); a = addvar(a,'input','temperature',[0 100]); a = addmf(a,'input',1,'cold','trimf',[0 30 60]); getfis(a,'input',1)
Name = temperature NumMFs = 1 MFLabels = cold Range = [0 100] b = rmmf(a,'input',1,'mf',1); getfis(b,'input',1)
See Also
addmf
, addrule
, addvar
, plotmf
, rmvar
![]() | readfis | rmvar | ![]() |