Sei sulla pagina 1di 18

Introduction to MATLAB

© 2012 The MathWorks, Inc.


Marta Wilczkowiak
Senior Applications Engineer
The MathWorks
Agenda
 Bringing Data into MATLAB from Excel, text
files, databases and devices
 Visualise, process and analyse data
 Automate data analysis and create reports

2
Data Analysis Tasks
Access Explore & Discover Share

Automate
3
MATLAB – A Platform for Data Analysis
Access Explore & Discover Share

Automate
4
Demo:
Flutter Suppression Controller Analysis
Goal: How to use MATLAB for

 Data import and manipulation


 Feature extraction
 Visualization
 Data modeling
 Batch processing

5
Flutter: example

6
Flutter: example

7
Flutter Suppression Controller Analysis

Setup

Input Model Output

Mach

Altitude

Wing pitch

8
Flutter Suppression Controller Analysis

Challenge: Find stability boundary of flutter suppression controller

 (Mach, Altitude)

330 spreadsheets (for varying Mach and altitude)


Damping(Mach and altitude)
9
Demo:
Flutter Suppression Controller Analysis
Approach:
 Compute damping ratio for signal in a single file
 Save the processing routines as a script

Interactive analysis

10
Demo:
Flutter Suppression Controller Analysis
Computing damping ratio
•p0

•p 1
• Extract interval of interest
•p2
• Compute peaks
• Compute logarithmic decrement
via curve fitting

δn
e 
p0
pn
• Compute damping ratio as

 
2 2   2
11
Demo:
Flutter Suppression Controller Analysis
Approach:
 Compute damping ratio for signal in a single file
 Save the processing routines as a script
 Compute ratio for each file using batch processing
 Model the result

 (Mach, Altitude)

•Batch processing

12
Demo:
Flutter Suppression Controller Analysis
Summary: How to use MATLAB for

 Data manipulation
 Feature extraction
 Visualization
 Modeling
 Batch processing

13
Demo:
Access Explore & Discover Share

Automate
14
Accessing Data from MATLAB
Access Explore & Discover Share

 Files
– Excel, text, or binary
– Multimedia, scientific
– Web, XML
 Applications and languages
– C/C++, Java, FORTRAN
– COM, .NET, shared libraries
– Databases
 Measurement hardware
– Data acquisition hardware for
signals or images
– Stand-alone instruments and devices

15
Data Analysis and Visualization in MATLAB
Access Explore & Discover Share

 Data Analysis
– Manipulate, preprocess, and
manage data
– Fast, accurate analysis with pre-built
math and engineering functions

 Visualization
– Built in graphics functions for
engineering and science
(2D, 3D, VolViz)
– Interactive tools to annotate and
customize graphics

16
Sharing Results from MATLAB
Access Explore and Discover Share

 Automatically generate
structured reports
– Published MATLAB files
– MATLAB® Report Generator

 Feed your results into


downstream design tools

 Deploy applications to other


environments

17
Benefits:
Acquiring and Visualizing Data
 Multiple data sources available
 Immediate visualization means direct evaluation of
your experiments and control of the quality of your data
 Single environment for data access, analysis and
visualization helps automation of tasks

18

Potrebbero piacerti anche