introduction to matlab for data analysis and programming · introduction to matlab for data...
TRANSCRIPT
![Page 1: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/1.jpg)
1 © 2013 The MathWorks, Inc.
Introduction to MATLAB for Data
Analysis and Programming
By Adrienne James, PhD
Application Engineering, MathWorks
![Page 2: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/2.jpg)
2
Agenda
Bring data into the MATLAB environment
Explore and visualise data using interactive tools
Use MATLAB’s high level language to automate data
analysis and create reports
![Page 3: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/3.jpg)
3
Data Analysis Tasks
Reporting and
Documentation
Outputs for Design
Deployment
Share
Explore & Discover
Data Analysis
& Modeling
Algorithm
Development
Application
Development
Files
Software
Hardware
Access
Code & Applications
Automate
![Page 4: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/4.jpg)
4
Demo: Solar Radiation Estimation Introduction to MATLAB
Goal:
– Estimate daily mean global solar radiation given low cost and
easily obtained measurements
Approach:
– Process historical measurements
– Develop and test predictive model
– Document analysis in a report
![Page 5: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/5.jpg)
5
Modelling Global Solar Radiation
𝑅𝑠 = 𝑎 (1 + 𝑏𝐻)(1 − 𝑒−𝑐 ∆𝑇𝑛)
Rs: Solar Ratio (global solar radiation/ extraterrestrial solar radiation)
H: Relative humidity
∆𝑇: TDailyMax – TDailyMin
a,b,c,n: Model coefficients
Value of extraterrestrial solar radiation is calculated
for a given day-of-year (ordinal date)
and latitude using a known formula
Daily temperature variations are largely driven by solar radiation received at the surface
extraterrestrial
radiation
total global
radiation
![Page 6: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/6.jpg)
6
Explore & Discover
Demo: Solar Radiation Estimation
Reporting and
Documentation
Outputs for Design
Deployment
Share
Data Analysis
& Modeling
Files
Software
Hardware
Access
Code & Applications
Automate
Algorithm
Development
Application
Development
Products Used MATLAB
Curve Fitting Toolbox
![Page 7: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/7.jpg)
7
Accessing Data from MATLAB
Files
– Excel, text, or binary
– Audio and video, image
– Scientific formats and XML
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 Share Access
![Page 8: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/8.jpg)
8
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
– Interactive tools for creating custom plots
Explore & Discover Share Access
![Page 9: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/9.jpg)
9
Sharing Results from MATLAB
Automatically generate reports
– Publish MATLAB files
– Customize reports using
MATLAB Report Generator
Package as an app
Deploy applications to
other environments
Explore & Discover Share Access
![Page 10: Introduction to MATLAB for Data Analysis and Programming · Introduction to MATLAB for Data Analysis and Programming By Adrienne James, PhD Application Engineering, MathWorks . 2](https://reader035.vdocument.in/reader035/viewer/2022062311/5f0225447e708231d402cc1b/html5/thumbnails/10.jpg)
10
Summary
High level programming language for technical
computing
Facilitates rapid, iterative data analysis
Interactive tools for data exploration and MATLAB code
generation