Main Content

convertToStruct

Convert fuzzy inference system object into a structure

Description

example

fisStructure = convertToStruct(fisObject) converts a fuzzy inference system object into a structure.

Examples

collapse all

Load a fuzzy inference system.

fisObject = readfis('tipper')
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.

Convert the fuzzy inference system object into a structure.

fisStructure = convertToStruct(fisObject)
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]

Input Arguments

collapse all

Fuzzy inference system object, specified as a mamfis or sugfis object.

Output Arguments

collapse all

Fuzzy inference system structure, returned as a structure. The fields of the structure correspond to the properties of the FIS object. For object properties that are themselves objects, the corresponding structure field is a structure.

Version History

Introduced in R2018b