Data Analysis with MATLAB 2013 The MathWorks, Inc. 1
Agenda Introduction Data analysis with MATLAB and Excel Break Developing applications with MATLAB Solving larger problems Summary 2
Modeling the Solar Ratio R s = a (1 + bh)(1 e c Tn ) R s : Solar Ratio H: Relative humidity T: T DailyMax T DailyMin a,b,c,n: Model coefficients Solar Ratio: How much of the incoming light does the atmosphere let through. extraterrestrial radiation total global radiation 3
Demo: Solar Radiation Estimation Goal: Estimate daily solar ratio given a weather forecast data. Approach: Process historical measurements Develop and test predictive model Document analysis in a report Link analysis to Excel workbook extraterrestrial radiation total global radiation Extend analysis on multiple files 4
Approaches with Excel and MATLAB Excel MATLAB 5
Data Analysis Tasks Access Files Explore & Discover Data Analysis & Modeling Share Reporting and Documentation Software Algorithm Development Outputs for Design Code & Applications Hardware Application Development Deployment Automate 6
Agenda Introduction Data analysis with MATLAB and Excel Break Developing applications with MATLAB Solving larger problems Summary 7
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 Link analysis to Excel workbook Extend analysis on multiple files 8
Demo: Estimate Solar Radiation Products Used MATLAB Spreadsheet Link EX Statistics Toolbox Curve Fitting Toolbox Access Files Explore & Discover Data Analysis & Modeling Share Reporting and Documentation Software Algorithm Development Outputs for Design Code & Applications Hardware Application Development Deployment Automate 9
Accessing Data from MATLAB Access Explore & Discover Share 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) 10
Data Analysis and Visualization in MATLAB Access Explore & Discover Share 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 11
Expanding the Capabilities of MATLAB Access Explore & Discover Share 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 12
Sharing Results from MATLAB Access Explore & Discover Share Automatically generate reports Publish MATLAB files Customize reports using MATLAB Report Generator Package as an app Deploy applications to other environments Convert MATLAB code to HDL / C 13
Agenda Introduction Data analysis with MATLAB and Excel Break Developing applications with MATLAB Solving larger problems Summary 14
Agenda Introduction Data analysis with MATLAB and Excel Break Developing applications with MATLAB Solving larger problems Summary 15
Demo: Analysis of Solar Data Building an Application Goal Estimate daily mean global solar radiation given low cost and easily obtained measurements Approach Develop and test estimate using historical data Modify analysis for reuse on multiple data sets Build user-friendly app Create shareable standalone component 16
Deploying Applications with MATLAB Toolboxes 1 MATLAB Desktop End-User Machine 2 MATLAB Compiler.exe 3 17
Deploying Applications with MATLAB Give MATLAB code to other users MATLAB apps MATLAB files Share applications with end users who do not need MATLAB Stand-alone executables MATLAB Builder EX MATLAB Compiler MATLAB Builder JA MATLAB Builder NE Shared libraries Software components.exe.dll.lib Excel Java Web.NET Royalty-free distribution 18
Demo: Application Development Products Used MATLAB Curve Fitting Toolbox MATLAB Compiler Access Files Explore & Discover Data Analysis & Modeling Share Reporting and Documentation Software Algorithm Development Outputs for Design Code & Applications Hardware Application Development Deployment Automate 19
Agenda Introduction Data analysis with MATLAB and Excel Break Developing applications with MATLAB Solving larger problems Summary 20
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 Link analysis to Excel workbook Extend analysis on multiple files 21
Independent Tasks or Iterations Ideal problem for parallel computing No dependencies or communications between tasks Examples: parameter sweeps, Monte Carlo simulations Time Time 22
Agenda Introduction Data analysis with MATLAB and Excel Break Developing applications with MATLAB Solving larger problems Summary 23
MATLAB A Platform for Data Analysis Access Files Explore & Discover Data Analysis & Modeling Share Reporting and Documentation Software Algorithm Development Outputs for Design Code & Applications Hardware Application Development Deployment Automate 24
2013 The MathWorks, Inc. 25