Fuzzy Logic Toolbox | ![]() ![]() |
Synopsis
getfis(a) getfis(a,'fisprop') 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:
'fisprop'
: a string indicating the field you want to access, for example, 'Name'
or 'NumInputs'
.input
or output
).You can also access fuzzy system properties directly using MATLAB's syntax for structures. See the examples below.
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
getfis(a,'type') ans = mamdani
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]
a.input(1) ans = name: 'service' range: [0 10] mf: [1x3 struct]
getfis(a,'input',1,'name') ans = service
a.input(1).name ans = service
getfis(a,'input',1,'mf',2) Name = good Type = gaussmf Params = 1.5000 5.0000
a.input(1).mf(2) ans = name: 'good' type: 'gaussmf' params: [1.5000 5]
getfis(a,'input',1,'mf',2,'name') ans = good
a.input(1).mf(2).name ans = good
See Also
![]() | gensurf | mam2sug | ![]() |