
Table of Contents
1. Introduction.......................................................................................3
1.1 Learning Matlab............................................................................3
1.2 Basic Definitions............................................................................6
1.3 Information of How to Read This Handout........................................8
1.4 Starting Up Matlab........................................................................9
1.5 Matlab’s Windows..........................................................................9
1.5.1 Command Window – Matlab as a Calculator .............................12
1.5.1.1 Controlling Command Window Input and Output................17
The format function:.................................................................18
Suppressing Output .................................................................19
Entering Long Statements.........................................................19
Command Line Editing .............................................................20
Interrupting a Command, a Script or a Function.........................20
Current Directory.....................................................................20
1.5.2 Editor/Debugger....................................................................21
1.4.3 Help Options..........................................................................22
h
h
e
e
l
l
p
p Command............................................................................22
l
l
o
o
o
o
k
k
f
f
o
o
r
r Command........................................................................23
The Help Window/Browser...........................................................23
2. Manipulating Vectors and Matrices ....................................................25
2.1 Row Vectors................................................................................25
2.1.1 The Colon Notation.................................................................27
2.1.2 Column Vectors .....................................................................29
2.1.3 Transporting Vectors ..............................................................30
2.1.4 Vector Manipulations Related to Products, Division, and Powers.31
2.1.4.1 Scalar Product .................................................................31
2.1.4.2 Dot Product .....................................................................32
2.1.4.3 Dot Division and Power.....................................................33
2.1.4.3 Some Useful Vector Functions ...........................................36
2.2 Two Dimensional Arrays (Matrices)................................................37
2.2.1 Transpose of a Matrix.............................................................39
2.2.2 Elaborating on Parts of Matrices – The Colon Notation...............40
2.2.2 Matrix Basic Manipulations.....................................................44
2.1.4 Matrix Manipulations Related to Products, Division, and Powers 44
2.1.4.1 Matrix Dot Product, Division and Powers ............................44
2.1.4.2 Matrix to Vector Product – Matrix to Matrix Product ............45
2.1.5 Special Cases of Matrices........................................................47
2.1.5 Additional Useful Matrix Functions..........................................48
2.1.6 Example: System of Linear Equations ......................................48
3. Plots and Graphs (2D and 3D) ...........................................................51
3.1 Creating 2D Line Plots..................................................................51
3.1.1 Plot Edit Mode .......................................................................52
3.1.2 Functions and Style Facilities Related to Plots...........................53
Komentáře k této Příručce