Experiment 2-Lab Report PDF
Experiment 2-Lab Report PDF
Vector in MATLAB is a matrix with either one row or one column. The
distinction between row vectors and column vectors is essential. Many
programming errors are caused by using a row vector where a column vector is
required, and vice versa.
MATLAB vectors are used in many situations, for example, creating x-y
plots, that do not fall under the rubric of linear algebra. In these contexts, a vector
is just a convenient data structure. MATLAB still enforces the rules of linear algebra
so paying attention to the details of vector creation and manipulation is always
important.
A matrix is a two-dimensional array of numbers. In MATLAB, you can create
a matrix by entering elements in each row as comma or space delimited numbers
and using semicolons to mark the end of each row.
There are different types of matrices that you may encounter in MATLAB.
These are, a.) Symmetric Matrix, if elements with interchanged subscripts are
equal b.) Hermitian Matrix, if elements with interchanged subscripts are equal to
the complex conjugate of each other c.) Toeplitz Matrix, if all elements along the
upper left to lower right diagonals are equal d.) Identity Matrix, if all zero except
for ones along the main diagonal is the identity matrix, denoted as I e.) Triangular
Matrix, if all elements of a lower triangular matrix above the main diagonal are
zero and all elements of an upper triangular matrix below the main diagonal are
zero.
In Vector and matrix operations, you can transpose, add, subtract, multiply
and divide matrices. Two or more vectors or matrices of the same dimensions may
be added or subtracted by adding/subtracting individual elements. Two matrices,
where the column dimension of the first is equal to the row dimension of the
second, may be multiplied by forming the dot product of the rows of the first matrix
and the columns of the second.
MATLAB has two different types of arithmetic operations: array operations
and matrix operations. You can use these arithmetic operations to perform numeric
computations, for example, adding two numbers, raising the elements of an array
to a given power, or multiplying two matrices.
Matrix operations follow the rules of linear algebra. By contrast, array
operations execute element by element operations and support multidimensional
arrays. The period character (.) distinguishes the array operations from the matrix
operations. However, since the matrix and array operations are the same for
addition and subtraction, the character pairs .+ and .- are unnecessary.
DATA AND RESULTS
CONCLUSION
I Therefore conclude that vector and matrix operations can perform
numerical computations by using different types of arithmetic operations. In these
operations, you can also add two numbers, raise the elements of an array to a
given power, or multiply two matrices. However, you may encounter minimal errors
in typing a command especially on element by element or what you called array
operations. You must not forget to put a period (.) before the multiplication (.*) and
division (./) of the two or more numbers.
REFERENCES
Array vs. Matrix Operations. (n.d.). Retrieved from MathWorks:
https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-
operations.html
Gibbs, B. P. (2011). SUMMARY OF VECTOR/MATRIX OPERATIONS. Retrieved
from Advanced Kalman Filtering, Least-Squares and Modeling: A Practical
Handbook:
https://onlinelibrary.wiley.com/doi/pdf/10.1002/9780470890042.app1
Matrix. (2020). Retrieved from TutorialsPoint SimplyEasyLearning:
https://www.tutorialspoint.com/matlab/matlab_matrics.htm
Recktenwald, G. (1995). Vectors. Retrieved from MATLAB(TM) Hypertext
Reference:
https://web.cecs.pdx.edu/~gerry/MATLAB/variables/vectors.html