Main Content

rmmf

(To be removed) Remove membership function from fuzzy inference system

    rmmf will be removed in a future release. Use removeMF instead. For more information, see Compatibility Considerations.

    Description

    example

    outfis = rmmf(infis,varType,varIndex,'mf',mfIndex) Removes the specified membership function from a given input or output variable of the fuzzy system infis.

    Examples

    collapse all

    Create a fuzzy inference system.

    fis = newfis('mysys');

    Add an input variable with a single membership function to the system.

    fis = addvar(fis,'input','temperature',[0 100]);
    fis = addmf(fis,'input',1,'cold','trimf',[0 30 60]);

    View the variable properties.

    getfis(fis,'input',1)
    ans = struct with fields:
          Name: 'temperature'
        NumMFs: 1
           mf1: 'cold'
         range: [0 100]
    
    

    Remove the membership function. To do so, remove membership function 1 from input 1.

    fis = rmmf(fis,'input',1,'mf',1);

    View the variable properties.

    getfis(fis,'input',1)
    ans = struct with fields:
          Name: 'temperature'
        NumMFs: 0
         range: [0 100]
    
    

    The variable now has no membership function.

    Input Arguments

    collapse all

    Fuzzy system, specified as a FIS object.

    Variable type, specified as either 'input' or 'output'.

    Variable index, specified as a positive integer.

    Membership function index, specified as a positive integer.

    Output Arguments

    collapse all

    Updated fuzzy system, returned as a FIS object.

    Version History

    Introduced before R2006a

    expand all