Main Content

Deep Learning with Simulink

Extend deep learning workflows using Simulink

Implement deep learning functionality in Simulink® models by using blocks from the Deep Neural Networks and Python Neural Networks block libraries, included in the Deep Learning Toolbox™, or by using the Deep Learning Object Detector block from the Analysis & Enhancement block library included in the Computer Vision Toolbox™.

Deep learning functionality in Simulink uses MATLAB Function block that requires a supported compiler. For most platforms, a default C compiler is supplied with the MATLAB® installation. When using C++ language, you must install a compatible C++ compiler. To see a list of supported compilers, open Supported and Compatible Compilers, click the tab that corresponds to your operating system, find the Simulink Product Family table, and go to the For Model Referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks column. If you have multiple MATLAB-supported compilers installed on your system, you can change the default compiler using the mex -setup command. See Change Default Compiler.

Blocks

Image ClassifierClassify data using a trained deep learning neural network (Since R2020b)
PredictPredict responses using a trained deep learning neural network (Since R2020b)
Stateful ClassifyClassify data using a trained deep learning recurrent neural network (Since R2021a)
Stateful PredictPredict responses using a trained recurrent neural network (Since R2021a)
Deep Learning Object DetectorDetect objects using trained deep learning object detector (Since R2021b)
TensorFlow Model PredictPredict responses using pretrained Python TensorFlow model (Since R2024a)
PyTorch Model PredictPredict responses using pretrained Python PyTorch model (Since R2024a)
ONNX Model PredictPredict responses using pretrained Python ONNX model (Since R2024a)
Custom Python Model PredictPredict responses using pretrained custom Python model (Since R2024a)

Topics

Images

Sequences

Reinforcement Learning

Python Coexecution

Code Generation