Deploy Fuzzy Inference Systems

You can deploy a fuzzy inference system (FIS) by generating code in either Simulink® or MATLAB®. You can generate code for both type-1 (mamfis, sugfis) and type-2 fuzzy (mamfistype2, sugfistype2) inference systems. All fuzzy inference system options, including custom inference functions, support code generation.

Generate Code in Simulink

You can generate code for evaluating fuzzy inference systems in Simulink using the Fuzzy Logic Controller block. You can generate code for double-precision, single-precision, or fixed-point data using Simulink Coder™ or Simulink PLC Coder™.

For more information, see Generate Code for Fuzzy System Using Simulink Coder and Generate Structured Text for Fuzzy System Using Simulink PLC Coder.

Generate Code in MATLAB

You can generate code for evaluating fuzzy inference systems in MATLAB. You can generate code for double-precision or single-precision data using MATLAB Coder.

Code generation in MATLAB does not support fuzzy inference system objects. Instead, convert your fuzzy system into a homogeneous structure using getFISCodeGenerationData, and pass the resulting structure to evalfis.

For more information, see Generate Code for Fuzzy System Using MATLAB Coder.

Note

Code generation does not support the construction of fuzzy systems at the command line.

See Also

Functions

Blocks

Related Topics