SlideShare une entreprise Scribd logo
1  sur  20
MATLAB
(Data Tools First)
19 March 2015
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
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
MATLAB Product Family
3/19/2015 Data Tools First - MATLAB 4
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
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
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
Built-in Functionality and Toolbox
• http://www.mathworks.com/products/?s_tid=gn_ps
3/19/2015 Data Tools First - MATLAB 8
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
MATLAB
Placement Test
Data Tools First
19 March 2015
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
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
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
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
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
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
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
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 . . .
. . . . .
. . . . .
. .
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
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

Contenu connexe

En vedette

Choosing statistical tests
Choosing statistical testsChoosing statistical tests
Choosing statistical tests
Akiode Noah
 
Commonly used statistical tests in research
Commonly used statistical tests in researchCommonly used statistical tests in research
Commonly used statistical tests in research
Naqeeb Ullah Khan
 
Lecture- Statistical Tests
Lecture- Statistical TestsLecture- Statistical Tests
Lecture- Statistical Tests
Mark McGinley
 
Choosing appropriate statistical test RSS6 2104
Choosing appropriate statistical test RSS6 2104Choosing appropriate statistical test RSS6 2104
Choosing appropriate statistical test RSS6 2104
RSS6
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
vkn13
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
Diwaker Pant
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
Ashutosh Shahi
 
Hypothesis
HypothesisHypothesis
Hypothesis
17somya
 
Research hypothesis
Research hypothesisResearch hypothesis
Research hypothesis
Nursing Path
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
piyushdhaker
 

En vedette (20)

Sample size by hoggs 1997
Sample size by hoggs 1997Sample size by hoggs 1997
Sample size by hoggs 1997
 
Choosing statistical tests
Choosing statistical testsChoosing statistical tests
Choosing statistical tests
 
كيف تجتاز مقابلة العمل بنجاح
كيف تجتاز مقابلة العمل بنجاحكيف تجتاز مقابلة العمل بنجاح
كيف تجتاز مقابلة العمل بنجاح
 
Working with Scientific Data in MATLAB
Working with Scientific Data in MATLABWorking with Scientific Data in MATLAB
Working with Scientific Data in MATLAB
 
Commonly used statistical tests in research
Commonly used statistical tests in researchCommonly used statistical tests in research
Commonly used statistical tests in research
 
Dtf matlab 20150319
Dtf matlab 20150319Dtf matlab 20150319
Dtf matlab 20150319
 
Lecture- Statistical Tests
Lecture- Statistical TestsLecture- Statistical Tests
Lecture- Statistical Tests
 
Statistical tests
Statistical testsStatistical tests
Statistical tests
 
Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)
 
Choosing appropriate statistical test RSS6 2104
Choosing appropriate statistical test RSS6 2104Choosing appropriate statistical test RSS6 2104
Choosing appropriate statistical test RSS6 2104
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
study designs
 study designs study designs
study designs
 
Study designs
Study designsStudy designs
Study designs
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABIntroduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Research hypothesis
Research hypothesisResearch hypothesis
Research hypothesis
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
 

Similaire à Dtf matlab 20150319-v3

INTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.pptINTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.ppt
Karthik537368
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
ssuserdee4d8
 

Similaire à Dtf matlab 20150319-v3 (20)

Matlab day 1: Introduction to MATLAB
Matlab day 1: Introduction to MATLABMatlab day 1: Introduction to MATLAB
Matlab day 1: Introduction to MATLAB
 
Matlab lecture 1 - installation of matlab, introduction and course outline@taj
Matlab lecture 1 - installation of matlab, introduction and course outline@tajMatlab lecture 1 - installation of matlab, introduction and course outline@taj
Matlab lecture 1 - installation of matlab, introduction and course outline@taj
 
MATLAB Training Online
MATLAB Training OnlineMATLAB Training Online
MATLAB Training Online
 
MATLAB Assignment Help
MATLAB Assignment HelpMATLAB Assignment Help
MATLAB Assignment Help
 
Matlab Assignment-Help-Canada
Matlab Assignment-Help-CanadaMatlab Assignment-Help-Canada
Matlab Assignment-Help-Canada
 
INTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.pptINTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.ppt
 
Basic matlab and matrix
Basic matlab and matrixBasic matlab and matrix
Basic matlab and matrix
 
MATLAB_CIS601-03.ppt
MATLAB_CIS601-03.pptMATLAB_CIS601-03.ppt
MATLAB_CIS601-03.ppt
 
MATLAB Thesis for Students
MATLAB Thesis for StudentsMATLAB Thesis for Students
MATLAB Thesis for Students
 
MATLAB Thesis for Students
MATLAB Thesis for StudentsMATLAB Thesis for Students
MATLAB Thesis for Students
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Workshop proposal
Workshop proposalWorkshop proposal
Workshop proposal
 
Introduction to MATLAB 1
Introduction to MATLAB 1Introduction to MATLAB 1
Introduction to MATLAB 1
 
Matlab assignment help
Matlab assignment helpMatlab assignment help
Matlab assignment help
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Getting to know about Matrix Laboratory or MatLab.pptx
Getting to know about Matrix Laboratory or MatLab.pptxGetting to know about Matrix Laboratory or MatLab.pptx
Getting to know about Matrix Laboratory or MatLab.pptx
 
Microsoft Mathematics
Microsoft MathematicsMicrosoft Mathematics
Microsoft Mathematics
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Image processing
Image processingImage processing
Image processing
 

Dernier

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 

Dtf matlab 20150319-v3

  • 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. 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. MATLAB Product Family 3/19/2015 Data Tools First - MATLAB 4
  • 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. 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. 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. Built-in Functionality and Toolbox • http://www.mathworks.com/products/?s_tid=gn_ps 3/19/2015 Data Tools First - MATLAB 8
  • 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. MATLAB Placement Test Data Tools First 19 March 2015
  • 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. 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. 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. 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. 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. 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. 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. 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. 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. 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