what’s new in matlab and simulink - mathworks · smart editing cues usability. 13 simulink:...

31
1 © 2015 MathWorks GmbH What’s New in MATLAB and Simulink Dr. Mohamed Anas Manager, Applications Engineering Group June 09, 2015

Upload: others

Post on 05-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

1© 2015 MathWorks GmbH

What’s New in MATLAB and Simulink

Dr. Mohamed Anas

Manager, Applications Engineering Group

June 09, 2015

Page 2: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

2

Imagine making your applications run

faster than you ever thought possible!

Page 3: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

3

Imagine stepping forward

through a simulation

Page 4: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

4

Imagine stepping forward

and back

through a simulation

Page 5: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

5

VisualizationCollaboration

Usability

Scalability

Page 6: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

6

VisualizationCollaboration

Usability

Scalability

Page 7: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

7

Where is MATLAB and Simulink Today?Usability

Page 8: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

8

Connecting to and Targeting Hardware

Target Low Cost Hardware

Simulink Hardware

Support Packages

iPhone

Data I/O

Ethernet, USB, Bluetooth

MATLAB Hardware

Support Packages

Low Cost Hardware

Arduino

Lego EV3

Android SensorsGet Support Package Now

Host Computer

MATLAB and

Simulink

Models

Usability

Page 9: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

9

MATLAB: Importing Data

Import Tool

– Interactive import of delimited and fixed-width text files

– Provides improved handling of numbers, text, and dates

– Automatically generate MATLAB code

(scripts and functions) to automate the process

Access online data (webread)

– JSON, CSV, and image data

Read and write data fromnetwork-connected devices (tcpclient)

Usability

Page 10: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

10

MATLAB: New Fundamental Data Types

table

– For mixed-type tabular data

– Supports flexible indexing

– Built-in functionality (merge, sort, etc.)

categorical arrays

– For discrete non-numeric data

Values drawn from a finite set of

possible values ("categories”)

– Can be compared using

logical operators

Similar to numeric arrays

Usability

Page 11: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

11

Where is MATLAB and Simulink Today?Usability

Page 12: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

12

Simulink: Accelerate Model BuildingSmart Editing Cues

Usability

Page 13: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

13

Simulink: Comment Out and Comment Through

Signal passes through the block

during simulation

Comment out option remains available

Works on blocks with the same

number of inputs and outputs

Comment a block so that the

output equals the input

Usability

Page 14: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

14

VisualizationCollaboration

Usability

Scalability

Page 15: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

15

New Graphics System Overview

New look

– New default colormap and line colors

– Anti-aliased fonts and lines

– Subtler grid lines

Easier to customize

– Graphics objects now behave

like other MATLAB objects

– Support dot-notation to

access and change properties

Data easier to interpret

Visualization

Page 16: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

16

New Graphics System

Multilingual text and symbols

Automatic updating of datetime tick labels

New visualization functions

– histogram

– animatedline

Multiple colormaps per figure

Rotatable tick labels

User interfaces with tab panels

Visualization

Page 17: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

17

MATLAB: Date and Time ArraysVisualization

Page 18: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

18

Simulink: Better Simulation Data AnalysisNew Simulation Data Inspector

Visualization

Page 19: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

19

Simulink: Tune and Monitor Your SimulationsNew graphical controls and displays

Visualization

Page 20: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

20

VisualizationCollaboration

Usability

Scalability

Page 21: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

21

Memory and Data Access

64-bit processors

Memory Mapped Variables

Disk Variables

Databases

Datastores

Platforms

Desktop (Multicore, GPU)

Clusters

Cloud Computing (MDCS on EC2)

Hadoop

Programming Constructs

Streaming

Block Processing

Parallel-for loops

GPU Arrays

SPMD and Distributed Arrays

MapReduce

Data Capabilities in MATLABScalability

Page 22: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

22

Simulink: Performance AdvisorScalability

Page 23: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

23

Simulink: Faster Consecutive SimulationsFast Restart

Scalability

Page 24: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

24

Stateflow: Start Simulation FasterJust-In-Time Compilation

Scalability

Page 25: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

25

VisualizationCollaboration

Usability

Scalability

Page 26: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

26

MATLAB and Simulink: Managing Code and ModelsSource Control Integration

Manage code from MATLAB

Desktop and Simulink Projects

Leverage source control

capabilities

– Git and Subversion integration

in Current Folder browser

Use Comparison Tool to view and

merge changes between revisions

Collaboration

Page 27: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

27

Simulink: Sharing Projects

Make project publicly available on GitHub

Share your project via email

Package project as a MATLAB toolbox

Share a project on GitHub® via e-

mail or as a MATLAB Toolbox

Collaboration

Page 28: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

28

App and Toolbox Packaging

Package your app or toolbox as a

single installer file

– Contains all of the code, data, apps,

documentation, and examples

– Checks for dependent files and

automatically includes them

– Documents required products

Included folders and files automatically

appear on path when installed

View details and uninstall toolboxes with

Manage Custom Toolboxes dialog box

Collaboration

Page 29: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

29

Simulink Data Dictionary

Componentization

Scalability and performance

Requirements linking

Change tracking and differencing

Defined model-data relationship

Integration with Simulink Projects

Store, edit and access design

data using the data dictionary

Simulink

Model 1

Model 2

Model 3

SLX

FileSLX

FileSLX

File

SLDD

FileSLDD

FileSLDD

FileGlobal Data

Collaboration

Page 30: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

30

Concluding Remarks

Methods for improving ease-of-use

during the design process

Convey information in a universal

manner and make it simple to share

“Scale up” and “Scale out”

Work together to a common purpose to

achieve business benefits

Page 31: What’s New in MATLAB and Simulink - MathWorks · Smart Editing Cues Usability. 13 Simulink: Comment Out and Comment Through Signal passes through the block during simulation Comment

31

VisualizationCollaboration

Usability

Scalability