36
1 © 2015 The MathWorks, Inc. What’s New in MATLAB and Simulink Mohamed Anas Stephan van Beek

What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

1© 2015 The MathWorks, Inc.

What’s New in MATLAB and Simulink

Mohamed Anas

Stephan van Beek

Page 2: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

2

InMotion Student Team Develops the

Racing Car of the Future

Punch Powertrain Develops Faster

and more Accurate Control for

Switched Reluctance Motors using

Zynq SoC

Vintecc Develops PLC System for

Multi-Axle Harvesting Machine

Using Model-Based Design

Rabobank Develops Goal Monitor to

Optimize Portfolio of their CustomersASML Develops Virtual Metrology Technology for

Semiconductor Manufacturing with Machine Learning

Page 3: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

3

Engineers and scientists…

Page 4: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

4

Develop algorithms

write MATLAB code.

Engineers and scientists…

Analyze data

Page 5: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

5

deploy algorithms and applications within

web, enterprise, and production systems.

Engineers and scientists…

Page 6: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

6

Engineers and scientists…

build Simulink models.

Run simulationsModel systems

Page 7: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

7

+

Engineers and scientists…

combine MATLAB code and

Simulink models together.

Page 8: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

8

Engineers and scientists…

generate code.

+C HDL PLC

Page 9: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

9

C HDL PLC

Engineers and scientists…

connect software to hardware.

Page 10: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

10

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

Page 11: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

11

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 12: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

12

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 13: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

13

MATLAB Live Editor

See results together with the code that

produced them, accelerating exploratory

programming and analysis

Add equations, images, hyperlinks,

and formatted text to create

interactive narratives

Create lectures that combine

explanatory text, mathematical

equations, code and results

Change the way you work in MATLAB

Analysis and Visualization

Page 14: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

14

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

Analysis and Visualization

Page 15: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

15

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

Analysis and Visualization

Page 16: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

16

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

Analysis and Visualization

Page 17: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

17

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 18: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

18

Start Page

Create new Simulink models using

templates as starting points to common

modeling approaches

Define your own templates for

standardization

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

Modeling and Simulation

Page 19: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

19

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

Modeling and Simulation

Page 20: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

20

Simulink Units

Specify physical units for Simulink signals

and bus elements

Identify unit mismatches at the component interfaces

Automatically convert units

Enforce consistency by restricting the unit system

Specify, visualize, and check

consistency of units on interfaces

Modeling and Simulation

Page 21: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

21

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

Modeling and Simulation

Page 22: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

22

3D Vision

Supports workflows for ADAS,

autonomous driving, and robotics

New functionality to support:

– 3D point cloud processing

– Structure from motion

Enables autonomous systems to

map and measure the world

Modeling and Simulation

Page 23: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

23

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 24: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

24Testing and Verification

MATLAB Unit Testing Framework

xUnit-style testing framework for

the 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

Page 25: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

25

Simulink Test

Simulink Test Harnesses Simulink Test Manager

Build synchronized executable

test environments

Create inputs and assessments based

on logic or temporal conditions

Integration with Real-Time Testing

Author, execute and manage

simulation-based testing

Testing and Verification

Physical

SystemI/O

Page 26: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

26

Deploying to Hardware

Acquire images from Raspberry Pi and

Kinect V2 into MATLAB and Simulink

Run Simulink models on Lego EV3,

Raspberry Pi 3, Raspberry Pi 3, 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

Testing and Verification

Page 27: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

27

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 28: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

28Sharing and Collaboration

App Designer

Choose from standard components (buttons,

check boxes, panels, etc.), as well as

gauges, lamps, knobs and switches

Quickly move between visual design

and code development

New object-based code format makes it

easier to share data between parts of the app

Develop MATLAB applications with an

enhanced design environment and

expanded UI component set

Page 29: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

29

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

MATLAB

Compiler SDK

++C/C

Sharing and Collaboration

Page 30: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

30

Three-Way Model Merge

Resolve conflicts in model files under

source 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

Sharing and Collaboration

Page 31: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

31

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 32: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

32

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 33: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

33

GPU Acceleration and Parallel Computing

Accelerate applications using

GPU-enabled functions

– > 300 in MATLAB

– > 90 in Statistics and Machine Learning Toolbox

– > 50 in Image Processing Toolbox

Use enhanced gpuArray functions for

sparse matrices on GPUs

Perform parallel computations using GPUsTransfer data to GPU

>> GX = gpuArray(X);

GPGPU Computation

>> GY = fft2(GX);

Gather data to CPU

>> Y = gather(GY);

Simple GPU code in MATLAB

0

10

20

30

40

50

60

70

80

0 512 1024 1536 2048

Tim

e (

se

co

nd

s)

Grid size

18 x

faster

23x

faster

20x

faster

Performance

Page 34: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

34

Analysisand

Visualization

Modelingand

Simulation

Sharingand

Collaboration

Testingand

Verification

Performance

Page 35: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

35

InMotion Student Team Develops the

Racing Car of the Future

Punch Powertrain Develops Faster

and more Accurate Control for

Switched Reluctance Motors using

Zynq SoC

Vintecc Develops PLC System for

Multi-Axle Harvesting Machine

Using Model-Based Design

Rabobank Develops Goal Monitor to

Optimize Portfolio of their CustomersASML Develops Virtual Metrology Technology for

Semiconductor Manufacturing with Machine Learning

Page 36: What’s New in MATLAB and Simulink · New default line colors, fonts, and styles with anti-aliased graphics and fonts improve the clarity and aesthetics of MATLAB visualizations

36© 2015 The MathWorks, Inc.