ABSTRACT

The commands that are introduced and the sections in which they are premiered are as follows:

end (3.2) length (3.4) size (3.4) ’ (3.5) linspace (3.6) logspace (3.6) who (3.7) whos (3.7) [ ] (3.8) clear (3.8) clear all (3.8)

3.1 Creating Matrices

One of the main reasons for using MATLAB is to deal with large data sets. Any such data set, if it is formatted in a way that MATLAB allows, can be stored and dealt with as a single variable. Saying this another way, a single variable, such as the ones defined in the last chapter, need not be assigned a single number. Instead, they can be assigned matrices with multiple elements. Here is an example of the assignment of a multi-element matrix of numbers to a variable called A.