Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-fv566 Total loading time: 0 Render date: 2024-07-18T10:24:12.443Z Has data issue: false hasContentIssue false

3 - Interacting with MATLAB

Published online by Cambridge University Press:  05 June 2012

Brian R. Hunt
Affiliation:
University of Maryland, College Park
Ronald L. Lipsman
Affiliation:
University of Maryland, College Park
Jonathan M. Rosenberg
Affiliation:
University of Maryland, College Park
Get access

Summary

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 will discuss some features of the MATLAB interface and the use of script M-files, function M-files, and diary files. We also give some simple hints for debugging your M-files.

The MATLAB Interface

MATLAB 6 has a new interface called the MATLAB Desktop. Embedded inside it is the Command Window that we described in Chapter 2. If you are using MATLAB 5, then you will only see the Command Window. In that case you should skip the next subsection and proceed directly to the Menu and Tool Bars subsection below.

The Desktop

By default, the MATLAB Desktop (Figure 1-1 in Chapter 1) contains five windows inside it, the Command Window on the right, the Launch Pad and the Workspace browser in the upper left, and the Command History window and Current Directory browser in the lower left. Note that there are tabs for alternating between the Launch Pad and the Workspace browser, or between the Command History window and Current Directory browser. Which of the five windows are currently visible can be adjusted with the View: Desktop Layout menu at the top of the Desktop. (For example, with the Simple option, you see only the Command History and Command Window, side-by-side.) The sizes of the windows can be adjusted by dragging their edges with the mouse.

Type
Chapter
Information
A Guide to MATLAB
For Beginners and Experienced Users
, pp. 31 - 49
Publisher: Cambridge University Press
Print publication year: 2001

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×