Skip to main content Accessibility help
×
×
Home
  • Print publication year: 2014
  • Online publication date: May 2018

3 - Interacting with MATLAB

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.

Recommend this book

Email your librarian or administrator to recommend adding this book to your organisation's collection.

A Guide to MATLAB®
  • Online ISBN: 9781107338388
  • Book DOI: https://doi.org/10.1017/CBO9781107338388
Please enter your name
Please enter a valid email address
Who would you like to send this to *
×