rmmf

Remove membership function from an FIS

Syntax

fis = rmmf(fis,'varType',varIndex,'mf',mfIndex) 

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:

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)

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]

See Also

addmf, addrule, addvar, plotmf, rmvar


© 1994-2005 The MathWorks, Inc.