what’s new in matlab and simulink - mathworks · real-time sources...

53
© 2019 The MathWorks, Inc. 1 © 2015 The MathWorks, Inc. What’s New in MATLAB and Simulink Mehernaz Savai

Upload: others

Post on 24-May-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 1© 2015 The MathWorks, Inc.

What’s New in MATLAB

and Simulink

Mehernaz Savai

Page 2: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 2

Using MATLAB & Simulink to Build Algorithms in Everything

Simplifying your work…

…often at higher levels of abstraction.

Page 3: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 3

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design Outputs

Page 4: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 5: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 5

Using Apps for Ground Truth LabelingImage and Video Data

InputDesi

gn

Outp

uts

Computer Vision Toolbox

Input

Page 6: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 6

Using Apps for Ground Truth LabelingSignal Data

Input

Signal Processing Toolbox

Input

Page 7: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 7

Using Apps for Ground Truth LabelingAudio Data

Input 2 3

Audio Toolbox

Input

Page 8: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 8

Identifying the Useful Data 2 Design

Predictive Maintenance Toolbox

Page 9: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 9

Identifying the Useful Data 2 Design

Predictive Maintenance Toolbox

Page 10: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 10

Identifying the Useful Data

Predictive Maintenance Toolbox

2 Design

Page 11: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 11

Using Apps for Designing Deep Learning Networks 2 Design

Deep Learning Toolbox

3

Page 12: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 13: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 14: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 15: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 16: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 16

Using MATLAB and Simulink for Reinforcement Learning

Reinforcement Learning Toolbox

Page 17: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 18: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 18

Input

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs

Input

Design

Design

Outputs

Outputs

Page 19: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

• PDF

• 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

Page 20: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 20

Live Editor Tasks

MATLAB

2 Design

Page 21: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 21

Designing Decision Logic with Stateflow

StateflowMATLAB

in MATLAB 2 Design

Page 22: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 22

Using Stateflow in MATLAB

StateflowMATLAB

2 Design

Page 23: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 23

Editing at the Speed of Thought

Simulink

2 Design

Page 24: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 25: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 25

Controlling the Execution of Model Components

Export Function Model

Schedulable Rate-Based Model

Simulink

2 Design

Page 26: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 26

Controlling the Execution of Model Components

Simulink

2 Design

Page 27: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 27

More Ways to Componentize Your Design

Simulink

2 Design

Page 28: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 28

Blockset Designer

Simplifying Blockset Creation and Sharing

Simulink

2 OutputOutput

Code Templates

Design Build

TestSimulink Blocks Packaged ToolboxIdeas Organization

Page 29: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 29

Viewing Generated Code Alongside the Model

Embedded Coder

2 OutputOutput

Page 30: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 30

Sharing Live Scripts

MATLAB

2 OutputOutput

Page 31: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 31

OutputDeploying Web Apps

MATLAB Compiler

OutputOutput

Page 32: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 32

Output

Output

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design Outputs

Page 33: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 33

Arch

Design OutputInput Arch

Evaluating Architectures

Inputs Design OutputsArchitecture

Page 34: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 34

Designing System and Software Architectures

System1Composer1

Design OutputInput

ArchArch

Mechanical System View

Power System View

Control System View

Page 35: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 36: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 36

ArchArchitecture

OutputDesignArchInput

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design Outputs

Spanning

Test & Verification Collaboration Scaling

Page 37: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 38: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 39: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 39

Validating Function Arguments

MATLAB

Design OutputInput Arch

Test & VerificationTest & Verification

Page 40: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 40

Using the MATLAB Performance

Testing Framework

MATLAB

Design OutputInput Arch

Test & VerificationTest & Verification

Page 41: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 41

Using Continuous Integration

MATLAB https://plugins.jenkins.io/

Design OutputInput Arch

Test & VerificationTest & Verification

Page 42: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 42

Using Projects in MATLAB

MATLAB

Design OutputInput Arch

Test & VerificationCollaboration

Page 43: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 43

Parallel Simulations in Simulink

SimulinkParallel Computing Toolbox

Design OutputInput Arch

Test & VerificationScaling

Page 44: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 45: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 46: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 47: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 47

Developing Autonomous Systems

Perception

Planning

Control

Page 48: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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

Page 49: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 49

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design OutputsArchitecture

Spanning

Test & Verification Collaboration Scaling

Page 50: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 50

Attend Sessions this Afternoon

Page 51: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 51

Read the Release Notes

Page 52: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 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.

Page 53: What’s New in MATLAB and Simulink - MathWorks · Real-Time Sources •Sensors/Instrumentation/Cameras •GPS •Communication systems •Machines (embedded systems) •Robot Operating

© 2019 The MathWorks, Inc. 53© 2015 The MathWorks, Inc.