Top Banner
1 © 2015 The MathWorks, Inc. Introduction to MATLAB Sean de Wolski Application Engineer
18

Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

May 28, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

1© 2015 The MathWorks, Inc.

Introduction to MATLAB

Sean de Wolski

Application Engineer

Page 2: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

2

What is MATLAB?

High-level language

Page 3: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

3

What is MATLAB?

High-level language

Interactive development environment

Page 4: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

4

What is MATLAB?

High-level language

Interactive development environment

Used for:

– Numerical computation

– Data analysis and visualization

– Algorithm development and programming

– Application development and deployment

Page 5: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

5

Technical Computing Workflow

Reporting and

Documentation

Outputs for Design

Deployment

ShareExplore & Discover

Data Analysis

& Modeling

Algorithm

Development

Application

Development

Files

Software

Hardware

Access

Code & Applications

Automate

Page 6: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

6

Demo: Fuel Economy Analysis

Goal:

– Study the relationships between fuel economy,

horsepower, and type of vehicle

Approach:

– Access data from Excel

– Interactively visualize and explore trends

– Create a model

– Document results in a report

Page 7: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

7

Demo: Fuel Economy Analysis

Reporting and

Documentation

Outputs for Design

Deployment

ShareExplore & Discover

Data Analysis

& Modeling

Files

Software

Hardware

Access

Code & Applications

Automate

Products Used MATLAB

Statistics Toolbox

Curve Fitting Toolbox

Algorithm

Development

Application

Development

Page 8: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

8

Accessing Data from MATLAB

Files

– Excel, text, or binary

– Audio and video, image

– Scientific formats and XML

Explore & Discover ShareAccess

Page 9: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

9

Accessing Data from MATLAB

Files

– Excel, text, or binary

– Audio and video, image

– Scientific formats and XML

Web Services

– JSON, CSV, and image data

– Financial Datafeeds (Datafeed Toolbox)

Explore & Discover ShareAccess

Page 10: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

10

Accessing Data from MATLAB

Applications and languages

– C/C++, Java, FORTRAN

– COM, .NET, shared libraries

– Databases (Database Toolbox)

Explore & Discover ShareAccess

Page 11: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

11

Accessing Data from MATLAB

Applications and languages

– C/C++, Java, FORTRAN

– COM, .NET, shared libraries

– Databases (Database Toolbox)

Measurement hardware

– Data acquisition hardware (Data Acquisition Toolbox)

– Stand-alone instruments and devices

(Instrument Control Toolbox)

Explore & Discover ShareAccess

Page 12: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

12

Data Analysis and Visualization in MATLAB

Built-in engineering and

mathematical functions

– Interpolation, filtering,

smoothing, Fourier analysis

Extensive plotting capabilities

– 2-D, 3-D, and volume visualization

– Tools for creating custom plots

Explore & Discover ShareAccess

Page 13: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

13

Expanding the Capabilities of MATLAB

MathWorks add-on tools for:

– Math, statistics, and optimization

– Control system design and analysis

– Signal processing and communications

– Image processing and computer vision

– Parallel computing and more…

Partner products provide:

– Additional interfaces

– Domain-specific analysis

– Support for niche applications

Explore & Discover ShareAccess

Page 14: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

14

Sharing Results from MATLAB

Automatically generate reports

– Publish MATLAB files

– Customize reports using

MATLAB Report Generator

Package as an app or custom toolbox

Deploy applications to other environments

Explore & Discover ShareAccess

Page 15: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

20

Using MATLAB

High-level language

– Native support for vector and matrix operations

– Built-in math and visualization functions

Page 16: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

21

Using MATLAB

High-level language

– Native support for vector and matrix operations

– Built-in math and visualization functions

Development environment

– Interactive and easy to get started

– Ideal for iterative exploration and design

Page 17: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

22

Using MATLAB

High-level language

– Native support for vector and matrix operations

– Built-in math and visualization functions

Development environment

– Interactive and easy to get started

– Ideal for iterative exploration and design

Technical computing platform

– Add-on products for a range of application areas(e.g., signal processing and communications,

image and video processing, control systems, test and measurement)

Page 18: Introduction to MATLAB - MathWorksAccessing Data from MATLAB Files –Excel, text, or binary –Audio and video, image –Scientific formats and XML Web Services –JSON, CSV, and

23© 2015 The MathWorks, Inc.

Questions?

MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks.

Other product or brand names may be trademarks or registered trademarks of their respective holders. © 2015 The MathWorks, Inc.