Top Banner
6.869 Matlab Quick Start
13

6869 Matlab Tutorial

Dec 15, 2015

Download

Documents

Wonbae Choi

Matlab Tutorial, MIT, Open Source, Electrical Engineering
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 6869 Matlab Tutorial

6.869 Matlab Quick Start

Page 2: 6869 Matlab Tutorial

• Everything is matrix

Page 3: 6869 Matlab Tutorial

• Matrix index

Page 4: 6869 Matlab Tutorial

• Manipulate matrices

Page 5: 6869 Matlab Tutorial

• Manipulate matrices

Page 6: 6869 Matlab Tutorial
Page 7: 6869 Matlab Tutorial

• Script or function?– Scripts are m-files containing MATLAB statements

– Functions are like any other m-file, but they accept arguments – It is always recommended to name function file the same as the function

name

Page 8: 6869 Matlab Tutorial

• Try to code in matrix ways

Page 9: 6869 Matlab Tutorial

• Script m-files

Page 10: 6869 Matlab Tutorial

-4-2

02

4

-4

-2

0

2

4-10

-5

0

5

10

-4-2

02

4

-4

-2

0

2

4-10

-5

0

5

10

Page 11: 6869 Matlab Tutorial
Page 12: 6869 Matlab Tutorial
Page 13: 6869 Matlab Tutorial

• whos

• help sth.

• lookfor sth

• clear / clear sth.

• clc

• http://courses.csail.mit.edu/6.869/resources.html • http://www.math.siu.edu/matlab/tutorials.html