Vectors and Matrices
Vectors and Matrices
Vectors and Matrices
Chapter 2
August 8, 2019 Basic Simulation Lab with MATLAB
Basics
• MATrix LABoratory
• One Object – Matrix
– Scalar , 1x1 Matrix
• Case sensitive
• Works with the entire matrix easily
– FORTRAN, C….??
• Very fast for MATRIX operations
Arithmetic
Relational
Operator Operation
Operator Operation
+ Addition
== Equal
- Subtraction
~= Not Equal
* Matrix Multiplication
< Less Than
.* Array Multiplication
<= Less Than or Equal
/ Division
> Greater Than
^ Matrix Power
>= Greater Than or Equal
.^ Array Power
' Transpose