Deep Learning with Simulink - MATLAB & Simulink (original) (raw)

Extend deep learning workflows using Simulink

Implement deep learning functionality in Simulink® models by using blocks from the Deep Neural Networks, Python Neural Networks, and Deep Learning Layers 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™.

To generate a Simulink model that uses the Deep Learning Layers block library to represent a network, use the exportNetworkToSimulink function.

Some deep learning functionality in Simulink uses a 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.

Functions

exportNetworkToSimulink Generate Simulink model that contains deep learning layer blocks that correspond to deep learning layer objects (Since R2024b)

Blocks

expand all

Networks

Activation Layers

Combination Layers

Convolution and Fully Connected Layers

Input Layer Normalizations

Rescale-Symmetric 1D 1-D input layer with rescale-symmetric normalization (Since R2024b)
Rescale-Symmetric 2D 2-D input layer with rescale-symmetric normalization (Since R2024b)
Rescale-Symmetric 3D 3-D input layer with rescale-symmetric normalization (Since R2024b)
Rescale-Zero-One 1D 1-D input layer with rescale-zero-one normalization (Since R2024b)
Rescale-Zero-One 2D 2-D input layer with rescale-zero-one normalization (Since R2024b)
Rescale-Zero-One 3D 3-D input layer with rescale-zero-one normalization (Since R2024b)
Zerocenter 1D 1-D input layer with zerocenter normalization (Since R2024b)
Zerocenter 2D 2-D input layer with zerocenter normalization (Since R2024b)
Zerocenter 3D 3-D input layer with zerocenter normalization (Since R2024b)
Zscore 1D 1-D input layer with zscore normalization (Since R2024b)
Zscore 2D 2-D input layer with zscore normalization (Since R2024b)
Zscore 3D 3-D input layer with zscore normalization (Since R2024b)

Normalization Layers

Pooling Layers

Sequence Layers

Flatten Layer Flatten layer (Since R2024b)
LSTM Layer Long short-term memory (LSTM) layer for recurrent neural network (RNN) (Since R2024b)
LSTM Projected Layer Long short-term memory (LSTM) projected layer for recurrent neural network (RNN) (Since R2024b)

Utility Layers

Topics

Deep Learning Layer Blocks

Images

Sequences

Reinforcement Learning

Python Coexecution

Code Generation