Deploy Fuzzy Inference Systems
You can deploy your fuzzy inference system (FIS) by:
Generating code in MATLAB® or Simulink®
Packaging and deploying a standalone application in MATLAB or Simulink
All fuzzy inference system options, including custom inference functions, support code generation and deployment.
Generate Code in MATLAB
You can generate code for evaluating the following types of fuzzy inference systems using MATLAB Coder™.
Code generation in MATLAB does not directly support fuzzy inference system objects. Instead, you
must first convert your fuzzy system into a homogeneous structure using
getFISCodeGenerationData, and then pass the resulting structure to
Code generation for fuzzy systems in MATLAB supports double-precision and single-precision data.
For more information, see Generate Code for Fuzzy System Using MATLAB Coder.
Code generation does not support the construction of fuzzy systems at the command line.
Generate Code in Simulink
You can generate code for evaluating fuzzy inference systems implemented in Simulink using Simulink Coder or Simulink PLC Coder™.
Simulink code generation supports the following fuzzy inference system, which you simulate using the Fuzzy Logic Controller block.
Code generation for fuzzy systems in Simulink supports double-precision, single-precision, and fixed-point data.
For more information, see Generate Code for Fuzzy System Using Simulink Coder and Generate Structured Text for Fuzzy System Using Simulink PLC Coder.
Deploy Fuzzy Systems
You can package and deploy standalone applications that include fuzzy systems using either MATLAB Compiler™ or Simulink Compiler.
You can compile:
MATLAB code that uses most Fuzzy Logic Toolbox™ command-line functionality. Compiling code that uses graphical functions (
gensurf) is not supported. Deploying the Fuzzy Logic Designer app is not supported. For more information on compiling MATLAB code, see Create Standalone Application from MATLAB Function (MATLAB Compiler).