Deep Learning Toolbox


Deep Learning Toolbox

Design, train, and analyze deep learning networks

Get Started:

Networks and Architectures

Train deep learning networks for classification, regression, and feature learning on image, time-series, numeric, and text data.

Convolutional Neural Networks

Learn patterns in images to recognize objects, faces, and scenes. Construct and train convolutional neural networks (CNNs) to perform feature extraction and image recognition.

Long Short-Term Memory Networks

Learn long-term dependencies in sequence data including signal, audio, text, and other time-series data. Construct and train long short-term memory (LSTM) networks to perform classification and regression. 

Working with LSTMs.

Network Architectures

Use various network structures including directed acyclic graph (DAG) and recurrent architectures to build your deep learning network. Build advanced network architectures such as generative adversarial networks (GANs) and Siamese networks using custom training loops, shared weights, and automatic differentiation.

Working with different network architectures.

Network Design and Analysis

Build, visualize, experiment with, and analyze deep learning networks using interactive apps.

Design Deep Learning Networks

Create and train a deep network from scratch using the Deep Network Designer app. Import a pretrained model, visualize the network structure, edit layers, tune parameters, and train.

Analyze Deep Learning Networks

Analyze your network architecture to detect and debug errors, warnings, and layer compatibility issues before training. Visualize the network topology and view details such as learnable parameters and activations.

Analyzing a deep learning network architecture.

Manage Deep Learning Experiments

Manage multiple deep learning experiments with the Experiment Manager app. Keep track of training parameters, analyze results, and compare code from different experiments. Use visualization tools such as training plots and confusion matrices, sort and filter experiment results, and define custom metrics to evaluate trained models.

Transfer Learning and Pretrained Models

Import pretrained models into MATLAB for inference.

Transfer Learning

Access pretrained networks and use them as a starting point to learn a new task. Perform transfer learning to use the learned features in the network for a specific task.

Pretrained Models

Access pretrained networks from the latest research with a single line of code. Import pretrained models including DarkNet-53, ResNet-50, SqueezeNet, NASNet, and Inception-v3.

Analysis of pretrained models.

Visualization and Debugging

Visualize training progress and activations of the learned features in a deep learning network.

Training Progress

View training progress in every iteration with plots of various metrics. Plot validation metrics against training metrics to see if the network is overfitting.

Monitoring your model's training progress.

Network Activations and Visualizations

Extract activations corresponding to a layer, visualize learned features, and train a machine learning classifier using the activations. Use the Grad-CAM, occlusion, and LIME to explain a deep learning network's classification decisions.

Visualizing activations.

Framework Interoperability

Interoperate with deep learning frameworks from MATLAB.

ONNX Converter

Import and export ONNX models within MATLAB® for interoperability with other deep learning frameworks. ONNX enables models to be trained in one framework and transferred to another for inference. Use GPU Coder™ to generate optimized NVIDIA® CUDA® code and use MATLAB Coder™ to generate C++ code for the imported model.

Interoperating with deep learning frameworks.

TensorFlow-Keras Importer

Import models from TensorFlow-Keras into MATLAB for inference and transfer learning. Use GPU Coder to generate optimized CUDA code and use MATLAB Coder to generate C++ code for the imported model.

Caffe Importer

Import models from Caffe Model Zoo into MATLAB for inference and transfer learning.

Importing models from Caffe Model Zoo into MATLAB.

Training Acceleration

Speed up deep learning training using GPU, cloud, and distributed computing. 

GPU Acceleration

Speed up deep learning training and inference with high-performance NVIDIA GPUs. Perform training on a single workstation GPU or scale to multiple GPUs with DGX systems in data centers or on the cloud. You can use MATLAB with Parallel Computing Toolbox and most CUDA-enabled NVIDIA GPUs that have compute capability 3.0 or higher.

Acceleration with GPUs.

Cloud Acceleration

Reduce deep learning training times with cloud instances. Use high-performance GPU instances for the best results.

Accelerating training in the cloud with Parallel Computing Toolbox and MATLAB Parallel Server.

Distributed Computing

Run deep learning training across multiple processors on multiple servers on a network using MATLAB Parallel Server.

Scaling up deep learning in parallel and in the cloud.

Simulation, Code Generation, and Deployment

Simulate and deploy trained networks to embedded systems or integrate them into production environments.


Simulate and generate code for deep learning networks in Simulink®. Use AlexNet, GoogLeNet and other pretrained models.  You can also simulate networks created from scratch or through transfer learning, including LSTM networks. Speed up the execution of your deep learning network in Simulink using GPU Coder and NVIDIA GPUs. Simulate deep learning networks with control, signal processing, and sensor fusion components to assess the impact of your deep learning model on system-level performance.

Deep convolutional neural networks inside a Simulink® model for perform lane and vehicle detection

Code Generation

Use GPU Coder to generate optimized CUDA code, MATLAB Coder and Simulink Coder to generate C and C++ code to deploy deep learning networks to NVIDIA GPUs, Intel® Xeon® and ARM® Cortex®-A processors. Automate cross-compilation and deployment of generated code onto NVIDIA Jetson™ and DRIVE™ platforms, and Raspberry Pi™ boards. Use Deep Learning HDL Toolbox™ to prototype and implement deep learning networks on FPGAs and SoCs

Deep Learning Quantization

Quantize your deep learning network to reduce memory usage and increase inference performance. Analyze and visualize the tradeoff between increased performance and inference accuracy using the Deep Network Quantizer app.

Deploying Standalone Applications

Use MATLAB Compiler™ and MATLAB Compiler SDK™ to deploy trained networks as C++ shared libraries, Microsoft® .NET assemblies, Java® classes, and Python® packages from MATLAB programs with deep learning models.

Sharing standalone MATLAB programs with MATLAB Compiler.

Shallow Neural Networks

Use neural networks with a variety of supervised and unsupervised shallow neural network architectures.

Supervised Networks

Train supervised shallow neural networks to model and control dynamic systems, classify noisy data, and predict future events. 

Shallow neural network.

Unsupervised Networks

Find relationships within data and automatically define classification schemes by letting the shallow network continually adjust itself to new inputs. Use self-organizing, unsupervised networks as well as competitive layers and self-organizing maps.

Self-organizing map.

Stacked Autoencoders

Perform unsupervised feature transformation by extracting low-dimensional features from your data set using autoencoders. You can also use stacked autoencoders for supervised learning by training and stacking multiple encoders.

Stacked encoder.