Hauptinhalt

Deep Learning mit Simulink

Erweitern Sie Deep-Learning-Workflows mit Simulink

Implementieren Sie Deep-Learning-Funktionen in Simulink®-Modellen, indem Sie Blöcke aus den Blockbibliotheken „Deep Neural Networks“, „Python Neural Networks“ und „Deep Learning Layers“ verwenden, die in der Deep Learning Toolbox™ enthalten sind, oder indem Sie den Deep Learning Object Detector-Block aus der in der Computer Vision Toolbox™ enthaltenen Blockbibliothek „Analysis & Enhancement“ verwenden.

Um ein Simulink-Modell zu erstellen, das mit der Blockbibliothek „Deep Learning Layers“ ein Netz darstellt, verwenden Sie die Funktion exportNetworkToSimulink.

Einige Deep-Learning-Funktionalitäten in Simulink verwenden einen MATLAB Function-Block, der einen unterstützten Compiler erfordert. Für die meisten Plattformen wird ein Standard-C-Compiler mit der MATLAB®-Installation mitgeliefert. Wenn Sie die Sprache C++ verwenden, müssen Sie einen kompatiblen C++ Compiler installieren. Um eine Liste der unterstützten Compiler anzuzeigen, öffnen Sie Supported and Compatible Compilers, klicken Sie auf die Registerkarte, die Ihrem Betriebssystem entspricht, suchen Sie die Simulink Product Family-Tabelle und gehen Sie zur Spalte For Model Referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks. Wenn Sie mehrere MATLAB-unterstützte Compiler auf Ihrem System installiert haben, können Sie den Standard-Compiler mit dem Befehl mex -setup ändern. Siehe Change Default Compiler.

Funktionen

exportNetworkToSimulinkGenerate Simulink model that contains deep learning layer blocks and subsystems that correspond to deep learning layer objects (Seit R2024b)

Blöcke

alle erweitern

Image ClassifierKlassifizierung von Daten mithilfe eines trainierten neuronalen Deep-Learning-Netzes
PredictPredict responses using a trained deep learning neural network
Stateful ClassifyClassify data using a trained deep learning recurrent neural network (Seit R2021a)
Stateful PredictPredict responses using a trained recurrent neural network (Seit R2021a)
Deep Learning Object DetectorDetect objects using trained deep learning object detector (Seit R2021b)
TensorFlow Model PredictPredict responses using pretrained Python TensorFlow model (Seit R2024a)
PyTorch Model PredictPredict responses using pretrained Python PyTorch model (Seit R2024a)
ONNX Model PredictPredict responses using pretrained Python ONNX model (Seit R2024a)
Custom Python Model PredictPredict responses using pretrained custom Python model (Seit R2024a)
Clipped ReLU LayerClipped Rectified Linear Unit (ReLU) layer (Seit R2024b)
GELU LayerGaussian error linear unit (GELU) layer (Seit R2024b)
Leaky ReLU LayerLeaky rectified linear unit (ReLU) layer (Seit R2024b)
ReLU LayerRectified linear unit (ReLU) layer (Seit R2024b)
Sigmoid LayerSigmoid layer (Seit R2024b)
Softmax LayerSoftmax layer (Seit R2024b)
Tanh LayerHyperbolic tangent (tanh) layer (Seit R2024a)
Addition LayerAddition layer (Seit R2024b)
Concatenation LayerConcatenation layer (Seit R2024b)
Depth Concatenation LayerDepth concatenation layer (Seit R2024b)
Multiplication LayerMultiplication layer (Seit R2024b)
Convolution 1D Layer1-D convolutional layer (Seit R2024b)
Convolution 2D Layer2-D convolutional layer (Seit R2024b)
Convolution 3D Layer3-D convolutional layer (Seit R2024b)
Fully Connected LayerFully connected layer (Seit R2024b)
Rescale-Symmetric 1D1-D input layer with rescale-symmetric normalization (Seit R2024b)
Rescale-Symmetric 2D2-D input layer with rescale-symmetric normalization (Seit R2024b)
Rescale-Symmetric 3D3-D input layer with rescale-symmetric normalization (Seit R2024b)
Rescale-Zero-One 1D1-D input layer with rescale-zero-one normalization (Seit R2024b)
Rescale-Zero-One 2D2-D input layer with rescale-zero-one normalization (Seit R2024b)
Rescale-Zero-One 3D3-D input layer with rescale-zero-one normalization (Seit R2024b)
Zerocenter 1D1-D input layer with zerocenter normalization (Seit R2024b)
Zerocenter 2D2-D input layer with zerocenter normalization (Seit R2024b)
Zerocenter 3D3-D input layer with zerocenter normalization (Seit R2024b)
Zscore 1D1-D input layer with zscore normalization (Seit R2024b)
Zscore 2D2-D input layer with zscore normalization (Seit R2024b)
Zscore 3D3-D input layer with zscore normalization (Seit R2024b)
Batch Normalization LayerBatch normalization layer (Seit R2024b)
Layer Normalization LayerLayer normalization layer (Seit R2024b)
Average Pooling 1D Layer1-D average pooling layer (Seit R2024b)
Average Pooling 2D Layer2-D average pooling layer (Seit R2024b)
Average Pooling 3D Layer3-D average pooling layer (Seit R2024b)
Global Average Pooling 1D Layer1-D global average pooling layer (Seit R2024b)
Global Average Pooling 2D Layer2-D global average pooling layer (Seit R2024b)
Global Average Pooling 3D Layer3-D global average pooling layer (Seit R2024b)
Global Max Pooling 1D Layer1-D global max pooling layer (Seit R2024b)
Global Max Pooling 2D Layer2-D global max pooling layer (Seit R2024b)
Global Max Pooling 3D Layer3-D global max pooling layer (Seit R2024b)
Max Pooling 1D Layer1-D max pooling layer (Seit R2024b)
Max Pooling 2D Layer2-D max pooling layer (Seit R2024b)
Max Pooling 3D Layer3-D max pooling layer (Seit R2024b)
Flatten LayerFlatten layer (Seit R2024b)
GRU LayerGated recurrent unit (GRU) layer for recurrent neural network (RNN) (Seit R2025a)
GRU Projected LayerGated recurrent unit (GRU) projected layer for recurrent neural network (RNN) (Seit R2025a)
LSTM LayerLong short-term memory (LSTM) layer for recurrent neural network (RNN) (Seit R2024b)
LSTM Projected LayerLong short-term memory (LSTM) projected layer for recurrent neural network (RNN) (Seit R2024b)
Dropout LayerDropout layer (Seit R2024b)

Themen

Blöcke der Deep-Learning-Schicht

Bilder

Sequenzen

Verstärkungslernen

Gemeinsame Ausführung mit Python

Code-Generierung

Enthaltene Beispiele