Matrix Representation, Operations and Vectorization
Recall that MATLAB is an abbreviation for Matrix Laboratory. Everything in MATLAB is a matrix, be it a scalar, variable or an image. The primary motivation behind building an entire piece of software for matrices was the fact that matrices are very important in engineering. Almost everyone has seen matrices in mathematics, where they are used for linear transformations, but matrices are also used in a wide range of applications in engineering where they represent a variety of different notions. In this section, we will see different representations of matrices, their applications, and learn different operations on them. Another important aspect is the trick known as vectorization. Since we will be dealing with big matrices, we will see that it is important to avoid loops over matrices using this trick.