Sunteți pe pagina 1din 13

6.

869 Matlab Quick Start


• Everything is matrix
• Matrix index
• Manipulate matrices
• Manipulate matrices
• 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
• Try to code in matrix ways
• Script m-files
10

-5

-10
4
2 4
0 2
0
-2 -2
-4 -4

10

-5

-10
4
2 4
0 2
0
-2 -2
-4 -4
• 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

S-ar putea să vă placă și