Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Dtf matlab 20150319-v3

193 views

Published on

Data Tools First 2015 (MATLAB)

Published in: Education
  • Be the first to comment

  • Be the first to like this

Dtf matlab 20150319-v3

  1. 1. MATLAB (Data Tools First) 19 March 2015
  2. 2. Contents • Introduction to MATLAB • What/Why MATLAB? • Applications and Use Cases • Built-in Functionality and Toolbox • Demo Programs • Visualization • Signal Processing • Pattern Recognition • Statistics • Placement Test • Why • Follow-ups • First compensation lecture on MATLAB (from 13:00) 3/19/2015 Data Tools First - MATLAB 2
  3. 3. What is MATLAB? • MATLAB (MATrix LABoratory) • A High level programming language. • Assembly / Machine coding : Low level • C, C++, Java, Python,… : High level (Complied Language) • MATLAB, Basic, Javascript, Python, R… : High level (Interpreted Language) • An interactive technical computing environment • Algorithm Development • Data Analysis • Numerical Computation 3/19/2015 Data Tools First - MATLAB 3
  4. 4. MATLAB Product Family 3/19/2015 Data Tools First - MATLAB 4
  5. 5. Why MATLAB? • A good choice for program development because: • Easy to Use • Quick to learn • Good documentation • A Big library for functions • Excellent display capabilities • Widely used for teaching and research in universities and industry 3/19/2015 Data Tools First - MATLAB 5
  6. 6. Application and Use Cases • Numerical Computation • Algebra, statistics, optimization,…. • Signal and Image Processing • Communication System • Control System • Financial Modeling and Analysis • Computational Biology 3/19/2015 Data Tools First - MATLAB 6
  7. 7. Algorithm/Visualization • Supports vectors and matrix operations • Supports data analysis process • Supports 2-D / 3-D plotting • Support audio & video 3/19/2015 Data Tools First - MATLAB 7
  8. 8. Built-in Functionality and Toolbox • http://www.mathworks.com/products/?s_tid=gn_ps 3/19/2015 Data Tools First - MATLAB 8
  9. 9. Demo Programs (from RWDA) • Visualization • Animated 3D object • Signal Processing • Filtering • audio • Regression • GPS • Pattern Recognition • K-means classification • hand-writing detection • Statistics • Gaussian Mixture Model (GMM) RWDA: Advanced Lectures on Real-World Data Analysis 3/19/2015 Data Tools First - MATLAB 9
  10. 10. MATLAB Placement Test Data Tools First 19 March 2015
  11. 11. Purpose • MATLAB will be used as the main tool for program in • Advanced Lectures on Real-World Data Analysis (fall 2015) • Everybody MUST have programming skill using MATLAB • There will be compensation lectures on MATLAB programming from April to September (Follow-up) • April - May: Elementary (Basic programming, and Mathematics, Evaluation) • June - July: Intermediate (Programming using Tool boxes) 3/19/2015 Data Tools First - MATLAB 11
  12. 12. If you are expert in MATLAB and Math • Need to take the test • No need to take compensation lectures • You do not need to stay for the compensation lecture 3/19/2015 Data Tools First - MATLAB 12
  13. 13. If you have some skill in MATLAB and Math • Need to take the test • Attend the compensation lectures from June (Intermediate level) • You do not need to stay for the compensation lecture (elementary) 3/19/2015 Data Tools First - MATLAB 13
  14. 14. If you are not familiar with MATLAB and Math • No need to take the test • Attend the compensation lectures • First compensation lecture is from 13:00 (DTF) 3/19/2015 Data Tools First - MATLAB 14
  15. 15. Problem 1 • Create matrix A with elements from 1 to 81, dimension 9 x 9 3/19/2015 Data Tools First - MATLAB 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
  16. 16. Problem 2 - I • Extract M1 and M2 and calculate • M1 x M2 • M1 + M2 • Extract M3 and M4 and calculate • Transposition Matrix of M3 (M3T) • M4 + M3T 3/19/2015 Data Tools First - MATLAB 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 M2 M1
  17. 17. Problem 2 - II • Extract M1 and M2 and calculate • M1 x M2 • M1 + M2 • Extract M3 and M4 and calculate • Transposition Matrix of M3 (M3T) • M4 + M3T 3/19/2015 Data Tools First - MATLAB 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 M4 M3
  18. 18. Problem 3 • Given Matrix A, using (for and if) commands do the following: • (I) Output a 9 x9 Matrix that has values of 0 and 1 • 1: if the element of Matrix A is dividable by 4 • 0: otherwise • (ii) Output a 9 x9 Matrix that has values of 0 and 1 • 1: if the element of Matrix A is dividable by 4 and not dividable by 5 • 0: otherwise 3/19/2015 Data Tools First - MATLAB 18 0 0 0 1 0 0 0 1 . 0 0 1 . . . . . . . . . . . . . . .
  19. 19. Problem 4 • (I) Create a sine wave for variable x • Amplitude = 5 • x = {0, 1, 2, …, 360} • (II) Plot the sine wave • Add title • Add axis labels 3/19/2015 Data Tools First - MATLAB 19
  20. 20. Reference • Textbook • Getting Started with MATLAB A quick Introduction for Scientists and Engineers Author: Pudra Pratap Oxford University Press, ISBN-13: 978-0199731244 • Others (MathWorks, MATLAB) • http://www.mathworks.com/help/matlab/getting-started-with-matlab.html • http://www.mathworks.com/help/pdf_doc/matlab/getstart.pdf 3/19/2015 Data Tools First - MATLAB 20

×