Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Chapter 3: Interacting with MATLAB

Chapter 3: Interacting with MATLAB

pp. 25-40

Authors

, University of Maryland, College Park, , University of Maryland, College Park, , University of Maryland, College Park
Resources available Unlock the full potential of this textbook with additional resources. There are free resources available for this textbook. Explore resources
  • Add bookmark
  • Cite
  • Share

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 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.

About the book

Access options

Review the options below to login to check your access.

Purchase options

eTextbook
US$83.00

Have an access code?

To redeem an access code, please log in with your personal login.

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.

Also available to purchase from these educational ebook suppliers