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 𝑅𝑠 = 𝑎 (1 + 𝑏𝐻)(1 − 𝑒 Rs: Solar Ratio H: Relative humidity ∆𝑇: TDailyMax – TDailyMin a,b,c,n: Model coefficients −𝑐 ∆𝑇 𝑛 ) extraterrestrial radiation Solar Ratio: How much of the incoming light does the atmosphere let through. 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 Explore & Discover Files Data Analysis & Modeling Software Algorithm Development Share Reporting and Documentation 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 Access Explore & Discover Files Data Analysis & Modeling Software Algorithm Development Products Used MATLAB Spreadsheet Link EX Statistics Toolbox Curve Fitting Toolbox Share Reporting and Documentation 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 MATLAB Desktop 1 End-User Machine MATLAB Compiler 2 3 .exe 17 Deploying Applications with MATLAB Give MATLAB code to other users – MATLAB apps – MATLAB files MATLAB Compiler Share applications with end users who do not need MATLAB MATLAB Builder EX MATLAB Builder JA MATLAB Builder NE – Stand-alone executables – Shared libraries – Software components .exe .dll .lib Excel Java Web .NET Royalty-free distribution 18 Demo: Application Development Access Explore & Discover Files Data Analysis & Modeling Software Algorithm Development Products Used MATLAB Curve Fitting Toolbox MATLAB Compiler Share Reporting and Documentation 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 Explore & Discover Files Data Analysis & Modeling Software Algorithm Development Share Reporting and Documentation Outputs for Design Code & Applications Hardware Application Development Deployment Automate 24 © 2013 The MathWorks, Inc. 25