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 block library, 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™.

Blocks

Image ClassifierClassify data using a trained deep learning neural network
PredictPredict responses using a trained deep learning neural network
Stateful ClassifyClassify data using a trained deep learning recurrent neural network
Stateful PredictPredict responses using a trained recurrent neural network
Deep Learning Object DetectorDetect objects using trained deep learning object detector

Topics

Images

Classify Images in Simulink Using GoogLeNet

This example shows how to classify an image in Simulink® using the Image Classifier block.

Lane and Vehicle Detection in Simulink Using Deep Learning

This example shows how to use deep convolutional neural networks inside a Simulink® model to perform lane and vehicle detection.

Classify ECG Signals in Simulink Using Deep Learning

This example shows how to use wavelet transforms and a deep learning network within a Simulink (R) model to classify ECG signals.

Classify Sequence of Images in Simulink with Imported TensorFlow Network

Import a pretrained TensorFlow™ network using importTensorFlowNetwork, and then use the Predict block for image classification in Simulink.

Sequences

Predict and Update Network State in Simulink

This example shows how to predict responses for a trained recurrent neural network in Simulink® by using the Stateful Predict block.

Classify and Update Network State in Simulink

This example shows how to classify data for a trained recurrent neural network in Simulink® by using the Stateful Classify block.

Speech Command Recognition in Simulink

Detect the presence of speech commands in audio using a Simulink model.

Time Series Prediction in Simulink Using Deep Learning Network

This example shows how to use an LSTM deep learning network inside a Simulink® model to predict the remaining useful life (RUL) of an engine.

Reinforcement Learning

Create Simulink Environment and Train Agent

Train a controller using reinforcement learning with a plant modeled in Simulink as the training environment.

Train DDPG Agent for Adaptive Cruise Control

Train a reinforcement learning agent for an adaptive cruise control application.

Train DQN Agent for Lane Keeping Assist Using Parallel Computing

Train a reinforcement learning agent for a lane keeping assist application.

Train DDPG Agent for Path-Following Control

Train a reinforcement learning agent for a lane following application.

Code Generation

Deep Learning Code Generation from Simulink Applications

Generate C/C++ and GPU code for deployment on desktop or embedded targets

Featured Examples