Documentation

CustomMATLABAlgorithms

Create blocks that implement custom algorithms using MATLAB®功能

TheMATLAB Functionblock allows you to add MATLAB functions to Simulink®models for deployment to desktop and embedded processors. This capability is useful for coding algorithms that are better stated in the textual language of MATLAB than in the graphical language of Simulink.

For an overview of using theMATLAB Functionblock to incorporate MATLAB code in a Simulink model, watchIncorporating MATLAB Algorithms into a Simulink Model (2 min, 4 sec).

  • MATLAB Algorithm Design
    Supported MATLAB features and functions, data definition, how behavior of generated code differs from MATLAB
  • MATLAB Algorithm Integration
    Integrate MATLAB algorithms in Simulink models with MATLAB Function blocks
  • Code Generation
    Guidelines for traceability and improving readability, external code integration
  • Performance
    Guidelines for improving generated code performance
Was this topic helpful?