matlab introduction trygve eftestøl karl skretting
TRANSCRIPT
![Page 1: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/1.jpg)
MATLAB Introduction
Trygve EftestølKarl Skretting
![Page 2: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/2.jpg)
Aim of the course
• Get to know MATLAB– What is MATLAB?
• Why use MATLAB?
– Basic training• User interface• Basic functions• Visualisation• Programming• Analysis
![Page 3: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/3.jpg)
Hva er MATLAB?
• Why use MATLAB?– Mathematcal
computations– Visualisation– Analysis– Used a lot for problem
solving • Cybernetics • Signal processing• Image processing• Pattern recognition• …
![Page 4: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/4.jpg)
Basic training
• User interface• Basic functions• Visualisation• Programming• Analysis
![Page 5: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/5.jpg)
User interface
• Command window
• Workspace• Editor• Help
![Page 6: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/6.jpg)
User interface
• Command window
![Page 7: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/7.jpg)
User interface
• Workspace
![Page 8: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/8.jpg)
User interface
• Editor
![Page 9: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/9.jpg)
User interface
• Help– Contents– Index– Search– Demo
![Page 10: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/10.jpg)
Basic functions
• Create matrices• Matrix operations• Matrix functions• Matrix indexing• Logical operations
![Page 11: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/11.jpg)
Basic functions
• Create matrices– Scalar– Vector– Matrix
![Page 12: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/12.jpg)
Basic functions
• Matrix operators
![Page 13: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/13.jpg)
Basic functions
• Matrix functions
![Page 14: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/14.jpg)
Basic functions
• Matrix indexing
![Page 15: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/15.jpg)
Basic functions
• Logical operators
![Page 16: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/16.jpg)
Visualisation
•2D-plotting•3D-plotting
![Page 17: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/17.jpg)
Visualisation
• 2D-plotting
![Page 18: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/18.jpg)
Visualisation
• 3D-plotting
![Page 19: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/19.jpg)
Visualisation
• 3D-plotting
![Page 20: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/20.jpg)
Programming
• Function files• Control structures
– if– while– for
![Page 21: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/21.jpg)
Programming
• Function files
![Page 22: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/22.jpg)
Programming
• Condition control using if
![Page 23: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/23.jpg)
Programming
• Iterations using while
![Page 24: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/24.jpg)
Programming
• Iterations using for
![Page 25: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/25.jpg)
Analysis
• Estimate pulse rate – Reading from data file– Plotting of signal– Detection of peaks– Problem – false
detections• Spectral analysis• Filtering
![Page 26: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/26.jpg)
Analysis
• Reading from data file
• Plotting of signal• Detection of peaks
![Page 27: MATLAB Introduction Trygve Eftestøl Karl Skretting](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e175503460f94b033a2/html5/thumbnails/27.jpg)
Analysis
• Problem – false detections– Spectral analysis– Filtering