02-02-2013, 10:38 AM
Vectors and Matrices in Matlab
1Vectors and Matrices.pdf (Size: 199.23 KB / Downloads: 22)
Introduction
This is an interactive document designed for online viewing. We’ve constructed this onscreen documents
because we want to make a conscientious effort to cut down on the amount of paper wasted at the College.
Consequently, printing of the onscreen document has been purposefully disabled. However, if you are
extremely uncomfortable viewing documents onscreen, we have provided a print version. If you click on
the Print Doc button, you will be transferred to the print version of the document, which you can print
from your browser or the Acrobat Reader. We respectfully request that you only use this feature when
you are at home. Help us to cut down on paper use at the College.
Much effort has been put into the design of the onscreen version so that you can comfortably navigate
through the document. Most of the navigation tools are evident, but one particular feature warrants a bit
of explanation. The section and subsection headings in the onscreen and print documents are interactive.
If you click on any section or subsection header in the onscreen document, you will be transferred to an
identical location in the print version of the document. If you are in the print version, you can make a
return journey to the onscreen document by clicking on any section or subsection header in the print
document.
Finally, the table of contents is also interactive. Clicking on an entry in the table of contents takes you
directly to that section or subsection in the document.
Working with Matlab
This document is a working document. It is expected that you are sitting in front of a computer terminal
where the Matlab software is installed. You are not supposed to read this document as if it were a short
story. Rather, each time your are presented with a Matlab command, it is expected that you will enter the
command, then hit the Enter key to execute the command and view the result. Furthermore, it is expected
that you will ponder the result. Make sure that you completely understand why you got the result you did
before you continue with the reading.
Array Operations
There is often a need for operations which operate on an element-by-element basis. In Matlab these
operations are built-in and very easy to use. For example, should you need to multiply two vectors on an
element-by-element basis, use Matlab’s .* operator.