Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to...

16
1 © 2015 The MathWorks, Inc. Introduction to MATLAB Lianne Crooks

Transcript of Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to...

Page 1: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

1© 2015 The MathWorks, Inc.

Introduction to MATLAB

Lianne Crooks

Page 2: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

2

Key Takeaways

▪ MATLAB can be used at all stages of your work.

▪ How to automate analysis.

– Avoid repetition

– Save time

▪ Many resources available to help you to learn basic

and advanced MATLAB concepts.

Page 3: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

3

What is MATLAB?

▪ High-level computer language designed to be used by

scientists and engineers within an easy-to-use interactive

environment.

▪ Extendable using toolboxes that provide targeted functionality

for specific types of analysis or area of expertise.

▪ Large range of use cases from simple, quick analysis to in-

depth programmes for production deployment.

Page 4: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

4

Technical Computing Workflow

Reporting and

Documentation

Outputs for Design

Deployment

ShareExplore & Discover

Files

Software

Hardware

Access

Code &

Applications

Automate

Data Analysis

& Modeling

Algorithm

Development

Application

Development

Page 5: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

5

Example: Bicycle Traffic Analysis

Bicycle

Counter

Harvard

University

City

Centre

Page 6: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

6

Example: Bicycle Traffic Analysis

▪ Bicycle count for journeys toward

Harvard (Westbound) and toward

City Centre (Eastbound).

▪ Counts recorded every 15 minutes

between 01/01/17 – /09/17.

▪ Data contains:

– Timestamp

– Day of the week

– Total bicycle counts per 15 minutes

– Counts separated by journey direction

Page 7: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

7

Importing Data: Interactive or Generate Code

Files

Software

Hardware

Access

Code &

Applications

▪ Interactively import data with the Import Tool:

Page 8: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

8

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 9: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

9

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 10: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

10

▪ Export as PDF/HTML/LaTeX

Sharing Code and Applications

Reporting and

Documentation

Outputs for Design

Deployment

Share

Page 11: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

11

▪ Create stand-alone application for MATLAB and

Non-MATLAB users.

Sharing Code and Applications

Reporting and

Documentation

Outputs for Design

Deployment

Share

Page 12: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

12

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 13: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

13

MATLAB Training – Online and in the Classroom

▪ Free MATLAB Onramp training.

– Get started with MATLAB

– Interactive training course

▪ Other self-paced, online courses:

https://matlabacademy.mathworks.com/

▪ Classroom training available:

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

Page 14: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

15

MATLAB Central

Page 15: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

16

MATLAB Central

Page 16: Introduction to MATLAB...2 Key Takeaways MATLAB can be used at all stages of your work. How to automate analysis. –Avoid repetition –Save time Many resources available to help

17

Summary and Benefits

▪ Easy and fast to explore ideas.

▪ Automatic code generation.

▪ Single software for entire workflow.

▪ Numerous resources for learning and getting help in MATLAB.