Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots,...

43
1 © 2016 The MathWorks, Inc. What’s New in MATLAB and Simulink Young Joon Lee Principal Application Engineer

Transcript of Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots,...

Page 1: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

1© 2016 The MathWorks, Inc.

What’s New in MATLAB and Simulink

Young Joon LeePrincipal Application Engineer

Page 2: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

2

Engineers and scientists…

Page 3: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

3

Developalgorithms

write MATLAB code.

Engineers and scientists…

Analyzedata

Page 4: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

4

deploy algorithms and applications withinweb, enterprise, and production systems.

Engineers and scientists…

Page 5: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

5

Engineers and scientists…

build Simulink models.

Modelsystems Runsimulations

Page 6: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

6

+

Engineers and scientists…

combine MATLAB code and Simulink models together.

Page 7: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

7

Engineers and scientists…

generate code.

+C HDL PLC

Page 8: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

8

C HDL PLC

Engineers and scientists…

connect software to hardware.

Page 9: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

9

And it’s all easier to do in the latest releases.

Page 10: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

10

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 11: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

11

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 12: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

12

MATLAB Live Editor

§ See results together with the code that produced them, accelerating exploratoryprogramming and analysis

§ Add equations, images, hyperlinks,and formatted text to createinteractive narratives

§ Create lectures that combineexplanatory text, mathematicalequations, code and results

Change the way you work in MATLAB

AnalysisandVisualization

[전시데모] MATLAB Live Editor/App Designer 소개

Page 13: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

13

MATLAB Graphics

§ New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

§ Steady stream of new features released– R2014b – rotatable tick labels, automatic updating of

datetime tick labels, and new visualization functions (histogram, animatedline)

– R2015b – increased control for customizing plot axes– R2016a – new functions for polar plots, multiple

y-axis plots, and for plotting mathematical expressions and equations

New look makes data easier to interpret and graphics objects are easier to customize

AnalysisandVisualization

Page 14: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

14

One-Click Display

§ Display port value for a signal by clicking it during simulation for easy debugging

§ For bus signals, select the signals of interest before simulation

Click a signal line when the simulation is running to view the current value

AnalysisandVisualization

Page 15: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

15

New Interface for Scopes

§ Scope, Floating Scope, and Viewers all upgraded with new UI

§ Includes simulation data analysis and debugging tools

– Cursors– Measurements– Triggers

View and debug signals with cursors and measurements

AnalysisandVisualization

Page 16: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

16

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 17: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

17

Deep Learning

§ Enables recognition workflows inautonomous robotics and ADAS

§ Convolutional neural network (CNN)algorithm added to Neural Network Toolbox

§ Uses cuDNN (a GPU-accelerated library from NVIDIA)(requires Parallel Computing Toolbox)

Perform fast, accurate image classification

ModelingandSimulation

[Track 1-1] MATLAB을활용한컴퓨터비전[Track 2-2]데이터 애널리틱스를위한머신 러닝기법

Page 18: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

18

3D Vision

§ Supports workflows for ADAS,autonomous driving, and robotics

§ New functionality to support:– 3D point cloud processing– Structure from motion

Enables autonomous systems tomap and measure the world

ModelingandSimulation

[Track 1-1] MATLAB을활용한컴퓨터비전 (3차원비전및기계학습)

Page 19: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

19

Pause Button

§ Pause the execution of a program fromthe Editor and enter debug mode

§ Check on the progress of long running programs to ensure they are runningas expected

§ Resume program execution

Troubleshoot problems withoutspecifying breakpoints in advance

ModelingandSimulation

Page 20: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

20

Start Page

§ Create new Simulink models using templates as starting points to common modeling approaches

§ Use fully developed example models as a reference as you set out to build your own models

§ Access most recent Simulink models right from the start page

Get started or resume work faster by accessing templates, recent models, and featured examples

ModelingandSimulation

Page 21: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

21

Automatic Solver Option

§ Simulink will select a solver and step size that is optimized for your specific model

§ Considers factors such as model stiffness and simulation performance

§ All new Simulink models use the automatic solver option

§ Can optionally lock down solver so that it does not change from one simulation to another

Set up and simulate your model more quickly with automatically selected solver settings

ModelingandSimulation

Page 22: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

22

Always-On Tunability

§ All tunable block parameters can be tuned during simulation while retaining the simulation speed

§ Choose between tunable and inline for default parameter behavior during code generation

§ Simscape block parameters nowtunableas well

Tune all block parameters and workspace variables during a simulation

ModelingandSimulation

Page 23: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

23

Simulink Units

§ Specify physical units for Simulink signalsand bus elements at the interfaces of components such as subsystems, model references, Stateflow charts and MATLAB function blocks

§ Identify unit mismatches at the component interfaces

§ Enforce consistency is by restricting the unit systems for certain components using the configuration parameter, ‘Allowed unit systems’

Specify, visualize, and check consistency of units on interfaces

ModelingandSimulation

Page 24: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

24

Messages

§ New message object and queue

§ Message Viewer block to visualize lifetime of a message

§ Signal lines in Simulink to transfer messages between charts

Model asynchronous operations in state charts using objects that carry data and can be queued

ModelingandSimulation

Page 25: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

25

New SimEvents Engine and Block Library

§ Model interrupts, shared resources, network delays, and other characteristics of multicore and distributed systems

§ Predict data races, deadlocks, and livelocksthat can effect system performance before going to hardware

§ Customize reactions to events using MATLAB and the Discrete Event System block

Model operating system task scheduling and communication

ModelingandSimulation

Page 26: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

26

Audio System Toolbox and WLAN System Toolbox

§ Audio System Toolbox enables real-time audio processing in MATLAB and Simulink

§ WLAN System Toolbox enables design and verification of evolving WLAN systems and WiFi devices

§ Use together with LTE System Toolbox to design and test wireless systems

Design and test audio processing and WLAN (WiFi) communications systems

ModelingandSimulation

[Track 5-2] Audio System Toolbox를 이용한오디오신호처리기초[Track 5-3]무선랜 및 5세통신

Page 27: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

27

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 28: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

28

MATLAB Unit Testing Framework

§ xUnit-style testing framework forthe MATLAB language

§ Includes a set of readily available qualification methods, and supports automation, providing easy reuse of test-cases

§ Includes script-based, function-based,and object-oriented interfaces

Write and run unit tests,and analyze test results

TestingandVerification

Page 29: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

29

Simulink Test

§ Build synchronized executabletest environments

§ Create inputs and assessments basedon logic or temporal conditions

Author, execute and manage simulation-based testing

Test Harness

Test Sequence Block

Test Manager

TestingandVerification

[Track 3-3]시뮬레이션 기반테스트의관리 및자동화

Page 30: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

30

Test Generation for Code

§ Test generation automates a difficult task

§ Generated tests lets you gain insightinto the simulation of your designcontaining S-functions

Automatically generate tests for C code S-functions

TestingandVerification

Page 31: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

31

Deploying to Hardware

§ Acquire images from USB webcams on Raspberry Pi into MATLAB

§ Run Simulink models on Lego EV3, Raspberry Pi 2, and Arduino Yun

§ Adds to existing support for Arduino, Lego, and Raspberry Pi platforms

Run your models on low-cost hardware and stream data into MATLAB

TestingandVerification

Page 32: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

32

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 33: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

33

App Designer

§ Choose from standard components (buttons, check boxes, panels, etc.), as well as gauges, lamps, knobs and switches

§ Quickly move between visual designand code development

§ New object-based code format makes iteasier to share data between parts of the app

Develop MATLAB applications with an enhanced design environment and expanded UI component set

SharingandCollaboration

[전시데모] MATLAB Live Editor/App Designer 소개

Page 34: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

34

Add-On Explorer

§ Browse, search, and install add-onsdirectly from MATLAB

§ Add-ons include community-authored and MathWorks toolboxes, apps, functions, models, and hardware support

Extend the capabilities of MATLAB by providing additional functionality for specific tasks and applications

SharingandCollaboration

Page 35: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

35

Using MATLAB with Other Languages

§ Call MATLAB from another language

§ Reuse legacy code written in another programming language within MATLAB

§ Package MATLAB programs into language-specific software components to integrate with other programming languages

– Python support added in R2015b

Integrate MATLAB with other programming languages, including C/C++, Java, .NET, and Python

MATLABOther LanguagesC/C++, Java, .NET, Python

.NET

JavaPython

MATLABCompiler SDK

++C/C

SharingandCollaboration

[Track 2-5]비지니스 애널리틱스솔루션개발을 위한MATLAB 활용기법 소개

Page 36: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

36

Three-Way Model Merge

§ Resolve conflicts in model files undersource control

§ Provides an interactive comparison report with the two conflicting designs along with the original base model

Graphically resolve conflicts between revisions within a Simulink project

SharingandCollaboration

Page 37: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

37

Scalable Report Generation

§ Can directly generate PDF documents that can handle large-scale reports

§ Generation of large PDF documents now possible on all platforms that MATLAB supports: Windows, Mac, Linux

Generate PDF reports as big as 10,000 pages

30 mins

SharingandCollaboration

Page 38: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

38

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 39: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

39

MATLAB Execution Engine

§ All MATLAB code can now be JIT compiled

§ Average performance improvement of 40% on 76 performance-sensitive user applications

§ A platform for future improvements

§ Performance testing framework– Measure MATLAB code performance– Interface leverages the unit testing framework

Redesigned execution engine runs MATLAB code faster

Performance

Page 40: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

40

GPU Acceleration and Parallel Computing

§ Accelerate applications usingGPU-enabled functions

– > 300 in MATLAB– > 90 in Statistics and Machine Learning Toolbox– > 50 in Image Processing Toolbox

§ Use enhanced gpuArray functions forsparse matrices on GPUs

Perform parallel computations using GPUs Transfer data to GPU>> GX = gpuArray(X);

GPGPU Computation>> GY = fft2(GX);

Gather data to CPU>> Y = gather(GY);

SimpleGPUcodeinMATLAB

01020304050607080

0 512 1024 1536 2048

Tim

e (s

econ

ds)

Grid size

18 xfaster

23xfaster

20xfaster

Performance

Page 41: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

41

Fast Restart

§ Efficiently run multiple interactive simulations

§ Saves simulation time eliminating recompilation between simulation runs

§ Improves calibration workflows wherethe user is tuning block parametersbetween runs

§ API introduced in R2015b

Run consecutive simulations more quickly

Performance

Page 42: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

42

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 43: Young Joon Lee Principal Application Engineer€¦ · – R2016a– new functions for polar plots, multiple y-axis plots, and for plotting mathematical expressions and equations New

43© 2016 The MathWorks, Inc.