MATH/CMSC 206 - Introduction to Matlab
Announcements | Syllabus | Tutorial | Projects | Submitting |
What are Matrices and Vectors?
Contents
Matrices
"Matrix" is not just the name of a really cool action movie. In
mathematics, a matrix is just a rectangular "grid" of values. Some examples of Matrices appear below:
This is a matrix with 4 rows and 4 columns: | This is a matrix with 3 rows and 2 columms: | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Matrices can be arbitrarily large. The smallest possible matrix would have just one row and one column -- some people call a 1 by 1 matrix a "scalar".
Vectors
A "vector" is like a one-dimensional matrix. It can be viewed as a single row or a single column. Examples
are below:
This vector looks like a row: | This vector looks like a column: | ||||||||
|
|