This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

convertfis

Convert previous versions of fuzzy inference data in current format

In R2018b, the format of fuzzy inference systems changed from a structure format to an object format. To convert fuzzy systems in an old format to the new format, use convertfis.

Syntax

fisNew = convertfis(fisOld)

Description

example

fisNew = convertfis(fisOld) converts the old-format fuzzy inference system fisOld into the current object format.

Examples

collapse all

Load a fuzzy inference system created using an old format. For example, load a FIS structure from a MAT-file.

load fisStructure

View the fields of the structure.

fisStructure
fisStructure = struct with fields:
            name: 'tipper'
            type: 'mamdani'
       andMethod: 'min'
        orMethod: 'max'
    defuzzMethod: 'centroid'
       impMethod: 'min'
       aggMethod: 'max'
           input: [1x2 struct]
          output: [1x1 struct]
            rule: [1x3 struct]

Convert the structure to a mamfis object and view the object properties.

fisObject = convertfis(fisStructure)
fisObject = 
  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.

Input Arguments

collapse all

Old-format fuzzy inference system, specified as a structure or a matrix.

Output Arguments

collapse all

New-format fuzzy inference system, returned as a mamfis object or a sugfis object.

See Also

|

Introduced in R2018b