Upload
others
View
15
Download
0
Embed Size (px)
Citation preview
1© 2015 The MathWorks, Inc.
Introduction to MATLAB
Laura Dempsey
2
Agenda
▪ What is MATLAB?
▪ Analysis Example: Bike Count Data
– Importing
– Exploring
– Sharing Results
▪ Signal Processing Example: Quick Start
▪ Where to get Help and Learn MATLAB
3
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.
4
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.
5
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
6Automate
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
7
Example: Bicycle Traffic Analysis
Bicycle
Counter
Harvard
University
City
Centre
8
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
9
Fundamental Data Types
10
Importing Data: Interactive or Generate Code
Files
Software
Hardware
Access
Code &
Applications
▪ Interactively import data with the Import Tool:
11
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)
12
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
13
▪ Export script as DOCX/PDF/HTML/LaTeX
Sharing Code and Applications
Reporting and
Documentation
Outputs for Design
Deployment
Share
14
▪ Create stand-alone application for MATLAB and
Non-MATLAB users.
Sharing Code and Applications
Reporting and
Documentation
Outputs for Design
Deployment
Share
15
Quick Starts to Complex Tasks
▪ MATLAB Apps
16
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:
17
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.
18
MATLAB Central
19
MATLAB Central
20
Summary and Benefits
▪ INTEGRATION: Single software for entire workflow
▪ AUTOMATION: Speed up repetitive tasks and generate code
▪ INFORMATION: MATLAB Central on MathWorks website, as well as
online and classroom training is available
21
Upcoming Agenda
▪ 14:00-15:00
– Intro to Simulink
and Stateflow
– Software Development
Practises with MATLAB
▪ 15:45-17:00
– Predictive Maintenance
with MATLAB