View
22
Download
0
Category
Preview:
Citation preview
© 2019 The MathWorks, Inc. 1© 2015 The MathWorks, Inc.
What’s New in MATLAB
and Simulink
Mehernaz Savai
© 2019 The MathWorks, Inc. 2
Using MATLAB & Simulink to Build Algorithms in Everything
Simplifying your work…
…often at higher levels of abstraction.
© 2019 The MathWorks, Inc. 3
Using MATLAB & Simulink to Build Algorithms in Everything
Inputs Design Outputs
© 2019 The MathWorks, Inc. 4
Using MATLAB & Simulink to Build Algorithms in EverythingUsing MATLAB & Simulink to Build Machine Learning Models
InputInputs
Input
Design
Design
Outputs
Outputs
Data
Machine
Learning
Deep
Learning
Model
© 2019 The MathWorks, Inc. 5
Using Apps for Ground Truth LabelingImage and Video Data
InputDesi
gn
Outp
uts
Computer Vision Toolbox
Input
© 2019 The MathWorks, Inc. 6
Using Apps for Ground Truth LabelingSignal Data
Input
Signal Processing Toolbox
Input
© 2019 The MathWorks, Inc. 7
Using Apps for Ground Truth LabelingAudio Data
Input 2 3
Audio Toolbox
Input
© 2019 The MathWorks, Inc. 8
Identifying the Useful Data 2 Design
Predictive Maintenance Toolbox
© 2019 The MathWorks, Inc. 9
Identifying the Useful Data 2 Design
Predictive Maintenance Toolbox
© 2019 The MathWorks, Inc. 10
Identifying the Useful Data
Predictive Maintenance Toolbox
2 Design
© 2019 The MathWorks, Inc. 11
Using Apps for Designing Deep Learning Networks 2 Design
Deep Learning Toolbox
3
© 2019 The MathWorks, Inc. 12
Using Transfer Learning with Pre-trained Models
2018 201920172016
Inception-v3
ResNet-101
VGG-16
ResNet-18
GoogLeNetDenseNet-
201
SqueezeNet
AlexNet
ResNet-50
Inception-
ResNet-v2
VGG-19Places365-
GoogLeNet
Xception
MobileNet-v2
ShuffleNet
NasNetLarge
NasNetMobile
2 Design 3
© 2019 The MathWorks, Inc. 13
Using Models from Other Frameworks
(…)Caffe
Keras-
Tensorflow
PyTorch
Open Neural Network Exchange
MATLAB ONNX
CNTK
Caffe2
MXNet
Core ML
Deep Learning Toolbox
2 Design 3
© 2019 The MathWorks, Inc. 14
OutputDeploying Deep Learning Applications
ARM
Compute
Library
Intel
MKL-DNN
Library
Design Output
Deep
Learning
Application
Coder
Products
NVIDIA
TensorRT &
cuDNN
Libraries
MATLAB CoderGPU Coder
Inputs
Pre-
processing
Post-
processing
Input Output
© 2019 The MathWorks, Inc. 15
Output
Using MATLAB and Simulink to Build Machine Learning Models
Inputs
Input
Design
Design
Outputs
Output
Data
Machine
Learning
Deep
Learning
Model
Using MATLAB and Simulink for Reinforcement Learning
Reinforcement Learning Toolbox
© 2019 The MathWorks, Inc. 16
Using MATLAB and Simulink for Reinforcement Learning
Reinforcement Learning Toolbox
© 2019 The MathWorks, Inc. 17
Output
Using MATLAB and Simulink to Build Deep Learning Models
Inputs Design
Design
Outputs
Output
Machine
Learning
Deep
Learning
Model
Using MATLAB and Simulink for Reinforcement Learning
Inputs
Scenario Design
Simulation-based
data generation
Generate Data
SimulinkReinforcement Learning Toolbox
Find out more:
2:30 PM: Deep Learning and
Reinforcement Learning Workflows in A.I.
3:30 PM: AI Techniques in MATLAB for
Signal, Time-Series, and Text Data
4:30 PM: Deploying Deep Neural Networks
to Embedded GPUs and CPUs
© 2019 The MathWorks, Inc. 18
Input
Using MATLAB & Simulink to Build Algorithms in Everything
Inputs
Input
Design
Design
Outputs
Outputs
© 2019 The MathWorks, Inc. 19
Working with Data
Repositories
• Databases (SQL/NoSQL)
• Hadoop
File I/O
• Text
• Spreadsheet
Business and Transactional Data
2InputInput
Web Sources
• RESTful/SOAP
• JSON
• HTML/XML
• Mapping
• Financial datafeeds
• FTP
File I/O
• CDF/HDF
• Audio/Image/ Video
• Geospatial
• Microarrays
• CAD Models
• MDF
Engineering, Scientific and Field Data
Communication Protocols
• CAN (Controller Area Network)
• DDS (Data Distribution Service)
• OPC (OLE for Process Control) (e.g. PI)
• XCP (eXplicit Control Protocol)
• TCP/IP
• Serial/Bluetooth/USB
Real-Time Sources
• Sensors/Instrumentation/Cameras
• GPS
• Communication systems
• Machines (embedded systems)
• Robot Operating System (ROS)
Recent Additions
File I/O
• Microsoft Word
• Parquet
• Vector BLF
• STL (Stereolithography)
Internet of Things (IOT)
• ThingSpeak
Web Sources
• Amazon Web Services
• Azure Blob Storage
The above list is not all-inclusive, but is intended for guidance only
© 2019 The MathWorks, Inc. 20
Live Editor Tasks
MATLAB
2 Design
© 2019 The MathWorks, Inc. 21
Designing Decision Logic with Stateflow
StateflowMATLAB
in MATLAB 2 Design
© 2019 The MathWorks, Inc. 22
Using Stateflow in MATLAB
StateflowMATLAB
2 Design
© 2019 The MathWorks, Inc. 23
Editing at the Speed of Thought
Simulink
2 Design
© 2019 The MathWorks, Inc. 24
Editing at the Speed of Thought
▪ Automatic Port Creation
▪ Edit on Block Icon
▪ Block Parameter
Autocomplete
▪ Predictive Quick Insert
Simulink
2 Design
© 2019 The MathWorks, Inc. 25
Controlling the Execution of Model Components
Export Function Model
Schedulable Rate-Based Model
Simulink
2 Design
© 2019 The MathWorks, Inc. 26
Controlling the Execution of Model Components
Simulink
2 Design
© 2019 The MathWorks, Inc. 27
More Ways to Componentize Your Design
Simulink
2 Design
© 2019 The MathWorks, Inc. 28
Blockset Designer
Simplifying Blockset Creation and Sharing
Simulink
2 OutputOutput
Code Templates
Design Build
TestSimulink Blocks Packaged ToolboxIdeas Organization
© 2019 The MathWorks, Inc. 29
Viewing Generated Code Alongside the Model
Embedded Coder
2 OutputOutput
© 2019 The MathWorks, Inc. 30
Sharing Live Scripts
MATLAB
2 OutputOutput
© 2019 The MathWorks, Inc. 31
OutputDeploying Web Apps
MATLAB Compiler
OutputOutput
© 2019 The MathWorks, Inc. 32
Output
Output
Using MATLAB & Simulink to Build Algorithms in Everything
Inputs Design Outputs
© 2019 The MathWorks, Inc. 33
Arch
Design OutputInput Arch
Evaluating Architectures
Inputs Design OutputsArchitecture
© 2019 The MathWorks, Inc. 34
Designing System and Software Architectures
System1Composer1
Design OutputInput
ArchArch
Mechanical System View
Power System View
Control System View
© 2019 The MathWorks, Inc. 35
Designing Beyond System and
Software Architectures
AUTOSAR SoftwareSystems and
SoftwareSoC Hardware
and Software
System Composer SoC Blockset AUTOSAR Blockset
Design OutputInput
ArchArch
© 2019 The MathWorks, Inc. 36
ArchArchitecture
OutputDesignArchInput
Using MATLAB & Simulink to Build Algorithms in Everything
Inputs Design Outputs
Spanning
Test & Verification Collaboration Scaling
© 2019 The MathWorks, Inc. 37
Integrating with Third-party Requirements Tools
Simulink Requirements
SimulinkRequirements
External Requirements
Authored Requirements
External Requirements
Requirements
Management
Tools
ReqIF
Import
Edit
Export
Test & Verification
Design OutputInput Arch
Test & Verification
© 2019 The MathWorks, Inc. 38
Include Custom Code in Test & Verification
Simulink Design Verifier
Simulink C/C++ Simulink Design Verifier
Stateflow C/C++
Test & Verification
Design OutputInput Arch
Test & Verification
© 2019 The MathWorks, Inc. 39
Validating Function Arguments
MATLAB
Design OutputInput Arch
Test & VerificationTest & Verification
© 2019 The MathWorks, Inc. 40
Using the MATLAB Performance
Testing Framework
MATLAB
Design OutputInput Arch
Test & VerificationTest & Verification
© 2019 The MathWorks, Inc. 41
Using Continuous Integration
MATLAB https://plugins.jenkins.io/
Design OutputInput Arch
Test & VerificationTest & Verification
© 2019 The MathWorks, Inc. 42
Using Projects in MATLAB
MATLAB
Design OutputInput Arch
Test & VerificationCollaboration
© 2019 The MathWorks, Inc. 43
Parallel Simulations in Simulink
SimulinkParallel Computing Toolbox
Design OutputInput Arch
Test & VerificationScaling
© 2019 The MathWorks, Inc. 44
Scaling Computations on Clusters and Clouds
MATLAB Parallel Server
MATLAB
Parallel Computing Toolbox
Cloud
GPU
Multi-core CPU
…
MATLAB Parallel Server
Design OutputInput Arch
ScalingScaling
© 2019 The MathWorks, Inc. 45
Scaling
Input Design OutputArch
Using MATLAB & Simulink to Build Algorithms in Everything
Inputs Design OutputsArchitecture
Scaling
Test & Verification Collaboration Scaling
© 2019 The MathWorks, Inc. 46
Specialized Tools for Building Algorithms
in Everything
Analog Mixed-Signal Communications
5G Toolbox
Physical interconnects
SerDes Toolbox Mixed-Signal Blockset
Scaling
Design OutputInput Arch
Find out more:
2:30 PM: Wired Communications Systems
Modeling and Analysis.
3:30 PM: Top-Down Modeling and Analysis
of Analog Mixed-Signal Systems
4:30 PM: Understanding and Modeling the
5G NR Physical Layer
© 2019 The MathWorks, Inc. 47
Developing Autonomous Systems
Perception
Planning
Control
© 2019 The MathWorks, Inc. 48
Perception
Planning
Control
Developing Autonomous Systems
Sensor Fusion and Tracking Toolbox Automated Driving Toolbox Model Predictive Control Toolbox
Find out more:
12:00 PM: Design and Test of
Automated Driving Algorithms
4:00 PM: Sensor Fusion and
Tracking for Autonomous Systems
© 2019 The MathWorks, Inc. 49
Using MATLAB & Simulink to Build Algorithms in Everything
Inputs Design OutputsArchitecture
Spanning
Test & Verification Collaboration Scaling
© 2019 The MathWorks, Inc. 50
Attend Sessions this Afternoon
© 2019 The MathWorks, Inc. 51
Read the Release Notes
© 2019 The MathWorks, Inc. 52
Get Started
Deep Learning Onramp
Learn to use deep learning
techniques in MATLAB.
MATLAB Onramp
Quickly learn the
essentials of MATLAB.
Simulink Onramp
Learn to create, edit, and
simulate Simulink models.
Stateflow Onramp
Learn to create, edit, and
simulate state machines.
© 2019 The MathWorks, Inc. 53© 2015 The MathWorks, Inc.
Recommended