In this chapter, we describe an effective procedure for working with MATLAB, and for preparing and presenting the results of a MATLAB session. In particular, we discuss some features of the MATLAB interface and the use of M-files. We describe how to write a simple loop as a precursor to a more robust discussion of MATLAB programming (in Chapter 6) that will enable you to make the most efficient use of M-files. We introduce the MATLAB publishing feature, which produces formatted output. It is the most effective method for presenting MATLAB results, although we also describe several alternate methods. Finally, we give some simple hints for debugging your M-files.
The MATLAB Interface
MATLAB's basic interactive interface, which launches when you start the program, is called the MATLAB Desktop. Embedded inside it is the Command Window that we described in Chapter 2.
The Desktop
By default, the MATLAB Desktop (Figure 1.1 in Chapter 1) contains four windows inside it, the Command Window in the center, the Current Folder Browser on the left, the Workspace Browser in the upper right, and the Command History Window in the lower right. Notice that if you minimize any of the latter three windows, then tabs appear that allow you to alternate between them.
Review the options below to login to check your access.
Log in with your Cambridge Aspire website account to check access.
If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.