Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists...

20
1

Transcript of Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists...

Page 1: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

1

Page 2: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

2© 2015 The MathWorks, Inc.

Introduction to MATLAB

Lianne Crooks

Page 3: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

3

Agenda

▪ What is MATLAB?

▪ Analysis Example: Bike Count Data

– Importing

– Exploring

– Sharing Results

▪ Where to get Help and Learn MATLAB

Page 4: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

4

Key Takeaways

▪ INTEGRATION: MATLAB can be used at all stages

of your work.

▪ AUTOMATION: Save time and avoid repetition.

▪ INFORMATION: Many resources available to help

you to learn basic and advanced MATLAB concepts.

Page 5: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

5

What is MATLAB?

▪ High-level computer language designed for

scientists and engineers.

▪ Combination of an easy-to-use, interactive

desktop environment with matrix-based

language.

▪ Extendable using toolboxes that provide

targeted functionality for specific types of

analysis or area of expertise.

Page 6: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

6

Technical Computing Workflow

Files

Software

Hardware

Access

Code &

Applications

Text files, spreadsheets

Images, Video and Audio

From the web, JSON, HTTP Messaging

Database or Datafeed

Devices

Out of Memory Data

Page 7: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

7Automate

Technical Computing Workflow

Reporting and

Documentation

Outputs for Design

Deployment

ShareExplore & Discover

Files

Software

Hardware

Access

Code &

Applications

Data Analysis

& Modeling

Algorithm

Development

Application

Development

Page 8: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

8

Example: Bicycle Traffic Analysis

Bicycle

Counter

Harvard

University

City

Centre

Page 9: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

9

Example: Bicycle Traffic Analysis

▪ Bicycle count for journeys toward

Harvard (Westbound) and toward

City Centre (Eastbound).

▪ Counts recorded every 15 minutes

▪ Data contains:

– Timestamp

– Day of the week

– Counts separated by journey direction

– Total bicycle counts per 15 minutes

Page 10: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

10

Importing Data: Interactive or Generate Code

Files

Software

Hardware

Access

Code &

Applications

▪ Interactively import data with the Import Tool:

Page 11: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

11

Fundamental Data Types

Page 12: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

13

Compare with Weather Data

▪ Historical weather data for Boston, MA.

▪ Same time period as bicycle traffic data.

▪ We have data for:

– Average wind speed (MPH)

– Precipitation (inches per day)

– Average daily temperature (ºF)

– Maximum daily temperature (ºF)

– Minimum daily temperature (ºF)

Page 13: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

14

Are bicycle counts related to the weather?

▪ Live Editor allows for quick and easy exploration of dataExplore & Discover

Data Analysis

& Modeling

Algorithm

Development

Application

Development

Page 14: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

15

▪ Export as PDF/HTML/LaTeX

Sharing Code and Applications

Reporting and

Documentation

Outputs for Design

Deployment

Share

Page 15: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

16

▪ Create stand-alone application for MATLAB and

Non-MATLAB users.

Sharing Code and Applications

Reporting and

Documentation

Outputs for Design

Deployment

Share

Page 16: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

17

MATLAB Onramp

▪ Get started with MATLAB for free

▪ Two-hour interactive training

course

– Hands-on experience.

– Work through examples and exercises

– Immediate feedback.

▪ Access directly from MATLAB:

Page 17: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

18

MATLAB Training – Online and in the Classroom

▪ Deep Learning Onramp

– 95 minutes of free material.

– Get started with Deep Learning.

▪ Other self-paced, online courses:

https://matlabacademy.mathworks.com/

▪ Classroom training available:

– You come to us, or we come to you.

Page 18: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

19

MATLAB Central

Page 19: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

20

MATLAB Central

Page 20: Introduction to MATLAB · 5 What is MATLAB? High-level computer language designed for scientists and engineers. Combination of an easy-to-use, interactive desktop environment with

21

Summary and Benefits

▪ INTEGRATION: Single software for entire workflow

▪ AUTOMATION: Automatic code generation

▪ INFORMATION: MATLAB Central on MathWorks website, as well as

online and classroom training is available