Main Content

convertfis

Convert previous versions of fuzzy inference data in current format

Description

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.

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"
    DisableStructuralChecks: 0
                     Inputs: [1x2 fisvar]
                    Outputs: [1x1 fisvar]
                      Rules: [1x3 fisrule]

	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.

Version History

Introduced in R2018b

See Also

|