Load fuzzy inference system from file
You can load a fuzzy inference system (FIS) from a
readfis function. To save a FIS to a file, use the
Do not manually edit the contents of a
.fis file. Doing so can
produce unexpected results when loading the file using a function, such as
getCodeGenerationData, or an app,
such as Fuzzy Logic Designer.
Load Fuzzy Inference System from File
Load the fuzzy system stored in the file
fis = readfis('tipper')
fis = mamfis with properties: Name: "tipper" AndMethod: "min" OrMethod: "max" ImplicationMethod: "min" AggregationMethod: "max" DefuzzificationMethod: "centroid" Inputs: [1x2 fisvar] Outputs: [1x1 fisvar] Rules: [1x3 fisrule] DisableStructuralChecks: 0 See 'getTunableSettings' method for parameter optimization.
fileName — File name
string | character vector
File name, specified as a string or character vector either with or without the
.fis extension. This file must be in the current working directory
or on the MATLAB® path.
fis — Fuzzy inference system
mamfis object |
sugfis object |
mamfistype2 object |
Version HistoryIntroduced before R2006a
R2019b: Support for representing fuzzy inference systems as structures will be removed
Warns starting in R2019b
Support for representing fuzzy inference systems as structures will be removed in a future
instead. There are differences between these representations that require updates to your
code. These differences include:
Object property names that differ from the corresponding structure fields.
Objects store text data as strings rather than as character vectors.
Also, all Fuzzy Logic Toolbox™ functions that accepted or returned fuzzy inference systems as structures now
accept and return either
To convert existing fuzzy inference system structures to objects, use the