getfis

Get fuzzy system properties

Syntax

getfis(a)
getfis(a,'fisprop')
getfis(a, 'vartype', varindex) 
getfis(a,'vartype',varindex,'varprop')
getfis(a,'vartype',varindex,'mf',mfindex) getfis(a,'vartype',varindex,'mf',mfindex,'mfprop')

Description

This is the fundamental access function for the FIS structure. With this one function you can learn about every part of the fuzzy inference system.

The arguments for getfis are as follows:

You can also access fuzzy system properties directly using MATLAB syntax for structures (including dot notation). See the examples that follow.

Examples

One input argument (output is the empty set)

a = readfis('tipper');
getfis(a)
        	Name = tipper
        Type = mamdani
        NumInputs = 2
        InLabels =
                service
                food
        NumOutputs = 1
        OutLabels =
                tip
        NumRules = 3
        AndMethod = min
        OrMethod = max
        ImpMethod = min
        AggMethod = max
        DefuzzMethod = centroid

Two input arguments

getfis(a,'type')
ans =
mamdani

or,

a.type
ans =
mamdani

Three input arguments (output is the empty set)

getfis(a,'input',1)
        Name = service
        NumMFs = 3
        MFLabels =
                poor
                good
                excellent
        Range = [0 10]

or,

a.input(1)
ans = 
     name: 'service'
    range: [0 10]
       mf: [1x3 struct]

Four input arguments

getfis(a,'input',1,'name')
ans =
service

or,

a.input(1).name
ans =
service

Five input arguments

getfis(a,'input',1,'mf',2)
        Name = good
        Type = gaussmf
        Params =
    1.5000    5.0000

or,

a.input(1).mf(2)
ans = 
      name: 'good'
      type: 'gaussmf'
    params: [1.5000 5]

Six input arguments

getfis(a,'input',1,'mf',2,'name')
ans =
good

or,

a.input(1).mf(2).name
ans =
good

See Also

setfis, showfis


© 1994-2005 The MathWorks, Inc.