Contenuto principale

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

Deep Learning con Simulink

R2026a
Estendere i workflow di Deep Learning utilizzando Simulink

Implementare la funzionalità di Deep Learning nei modelli di Simulink® utilizzando i blocchi dalle librerie di blocchi Deep Neural Networks, Python Neural Networks e Deep Learning Layers incluse nella Deep Learning Toolbox™ o utilizzando il blocco Deep Learning Object Detector dalla libreria di blocchi Analysis & Enhancement (Analisi e miglioramento) inclusa nella Computer Vision Toolbox™.

Per generare un modello Simulink che utilizza la libreria di blocchi Deep Learning Layers per rappresentare una rete, utilizzare la funzione exportNetworkToSimulink.

In Simulink, alcune funzionalità di Deep Learning utilizzano un blocco MATLAB Function che richiede un compiler supportato. Per la maggior parte delle piattaforme, un compilatore C predefinito viene fornito con l'installazione di MATLAB®. Quando si utilizza il linguaggio C++, è necessario installare un compilatore C++. Per visualizzare un elenco dei compilatori supportati, aprire Supported and Compatible Compilers (Compilatori supportati e compatibili), fare clic sulla scheda corrispondente al sistema operativo in uso, individuare la tabella Simulink Product Family e andare alla colonna For Model Referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks. Se sul sistema sono installati più compilatori supportati da MATLAB, è possibile modificare il compilatore predefinito utilizzando il comando mex -setup. Vedere Change Default Compiler.

Funzioni

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

Blocchi

espandi tutto

Classify blockClassifyClassify data using a trained deep learning neural network
Predict blockPredictPredict responses using a trained deep learning neural network
Stateful Classify blockStateful ClassifyClassify data using a trained deep learning recurrent neural network
Stateful Predict blockStateful PredictPredict responses using a trained recurrent neural network
Deep Learning Object Detector blockDeep Learning Object DetectorDetect objects using trained deep learning object detector
TensorFlow Model Predict Block IconTensorFlow Model PredictPredict responses using pretrained Python TensorFlow model (Da R2024a)
PyTorch Model Predict Block IconPyTorch Model PredictPredict responses using pretrained Python PyTorch model (Da R2024a)
ONNX Model Predict Block IconONNX Model PredictPredict responses using pretrained Python ONNX model (Da R2024a)
Custom Python Model Predict Block IconCustom Python Model PredictPredict responses using pretrained custom Python model (Da R2024a)
Clipped ReLU Layer blockClipped ReLU LayerClipped Rectified Linear Unit (ReLU) layer (Da R2024b)
GELU Layer blockGELU LayerGaussian error linear unit (GELU) layer (Da R2024b)
Leaky ReLU Layer blockLeaky ReLU LayerLeaky rectified linear unit (ReLU) layer (Da R2024b)
PReLU Layer blockPReLU LayerParameterized rectified linear unit (PReLU) layer (Da R2026a)
ReLU Layer blockReLU LayerRectified linear unit (ReLU) layer (Da R2024b)
Sigmoid Layer blockSigmoid LayerSigmoid layer (Da R2024b)
Softmax Layer blockSoftmax LayerSoftmax layer (Da R2024b)
Swish Layer blockSwish LayerSwish layer (Da R2026a)
Tanh Layer blockTanh LayerHyperbolic tangent (tanh) layer (Da R2024a)
Addition Layer blockAddition LayerAddition layer (Da R2024b)
Concatenation Layer blockConcatenation LayerConcatenation layer (Da R2024b)
Depth Concatenation Layer blockDepth Concatenation LayerDepth concatenation layer (Da R2024b)
Multiplication Layer blockMultiplication LayerMultiplication layer (Da R2024b)
Convolution 1D Layer blockConvolution 1D Layer1-D convolutional layer (Da R2024b)
Convolution 2D Layer blockConvolution 2D Layer2-D convolutional layer (Da R2024b)
Convolution 3D Layer blockConvolution 3D Layer3-D convolutional layer (Da R2024b)
Fully Connected Layer blockFully Connected LayerFully connected layer (Da R2024b)
Rescale-Symmetric 1D blockRescale-Symmetric 1D1-D input layer with rescale-symmetric normalization (Da R2024b)
Rescale-Symmetric 2D blockRescale-Symmetric 2D2-D input layer with rescale-symmetric normalization (Da R2024b)
Rescale-Symmetric 3D blockRescale-Symmetric 3D3-D input layer with rescale-symmetric normalization (Da R2024b)
Rescale-Zero-One 1D blockRescale-Zero-One 1D1-D input layer with rescale-zero-one normalization (Da R2024b)
Rescale-Zero-One 2D blockRescale-Zero-One 2D2-D input layer with rescale-zero-one normalization (Da R2024b)
Rescale-Zero-One 3D blockRescale-Zero-One 3D3-D input layer with rescale-zero-one normalization (Da R2024b)
Zerocenter 1D blockZerocenter 1D1-D input layer with zerocenter normalization (Da R2024b)
Zerocenter 2D blockZerocenter 2D2-D input layer with zerocenter normalization (Da R2024b)
Zerocenter 3D blockZerocenter 3D3-D input layer with zerocenter normalization (Da R2024b)
Zscore 1D blockZscore 1D1-D input layer with zscore normalization (Da R2024b)
Zscore 2D blockZscore 2D2-D input layer with zscore normalization (Da R2024b)
Zscore 3D blockZscore 3D3-D input layer with zscore normalization (Da R2024b)
Batch Normalization Layer blockBatch Normalization LayerBatch normalization layer (Da R2024b)
Instance Normalization Layer blockInstance Normalization LayerInstance normalization layer (Da R2026a)
Layer Normalization Layer blockLayer Normalization LayerLayer normalization layer (Da R2024b)
Inverse Zerocenter blockInverse ZerocenterInverse zero-center normalization (Da R2026a)
Inverse Zscore blockInverse ZscoreInverse Z-score normalization (Da R2026a)
Average Pooling 1D Layer blockAverage Pooling 1D Layer1-D average pooling layer (Da R2024b)
Average Pooling 2D Layer blockAverage Pooling 2D Layer2-D average pooling layer (Da R2024b)
Average Pooling 3D Layer blockAverage Pooling 3D Layer3-D average pooling layer (Da R2024b)
Global Average Pooling 1D Layer blockGlobal Average Pooling 1D Layer1-D global average pooling layer (Da R2024b)
Global Average Pooling 2D Layer blockGlobal Average Pooling 2D Layer2-D global average pooling layer (Da R2024b)
Global Average Pooling 3D Layer blockGlobal Average Pooling 3D Layer3-D global average pooling layer (Da R2024b)
Global Max Pooling 1D Layer blockGlobal Max Pooling 1D Layer1-D global max pooling layer (Da R2024b)
Global Max Pooling 2D Layer blockGlobal Max Pooling 2D Layer2-D global max pooling layer (Da R2024b)
Global Max Pooling 3D Layer blockGlobal Max Pooling 3D Layer3-D global max pooling layer (Da R2024b)
Max Pooling 1D Layer blockMax Pooling 1D Layer1-D max pooling layer (Da R2024b)
Max Pooling 2D Layer blockMax Pooling 2D Layer2-D max pooling layer (Da R2024b)
Max Pooling 3D Layer blockMax Pooling 3D Layer3-D max pooling layer (Da R2024b)
Flatten Layer blockFlatten LayerFlatten layer (Da R2024b)
GRU Layer blockGRU LayerGated recurrent unit (GRU) layer for recurrent neural network (RNN) (Da R2025a)
GRU Projected Layer blockGRU Projected LayerGated recurrent unit (GRU) projected layer for recurrent neural network (RNN) (Da R2025a)
LSTM Layer blockLSTM LayerLong short-term memory (LSTM) layer for recurrent neural network (RNN) (Da R2024b)
LSTM Projected Layer blockLSTM Projected LayerLong short-term memory (LSTM) projected layer for recurrent neural network (RNN) (Da R2024b)
Dropout Layer blockDropout LayerDropout layer (Da R2024b)
Identity Layer blockIdentity LayerIdentity layer (Da R2026a)
Scaling Layer blockScaling LayerScaling layer (Da R2026a)
Spatial Dropout Layer blockSpatial Dropout LayerSpatial dropout layer (Da R2026a)

Argomenti

Blocchi dei livelli di Deep Learning

Immagini

Sequenze

Apprendimento di rinforzo

Esecuzione simultanea di Python

Generazione di codice

Esempi in primo piano