O'Reilly logo

A Guide to MATLAB, Second Edition by Jonathan M. Rosenberg, Brian R. Hunt, Ronald L. Lipsman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4

Beyond the Basics

In this chapter, we describe some of the finer points of MATLAB and review in more detail some of the concepts introduced in Chapter 2. We explore enough of MATLAB’s internal structure to improve your ability to work with complicated functions, expressions, and commands. At the end of this chapter, we introduce some of the MATLAB commands for doing calculus.

Suppressing Output

Some MATLAB commands produce output that is superfluous. For example, when you assign a value to a variable, MATLAB echoes the value. But, as we mentioned briefly in Chapter 2, you can suppress the output of a command by putting a semicolon after the command. Here is an example.

>> syms x

>> y = x + 7

y=

x+7

>> z = x + 7;

>> z

z=

x+7

The semicolon ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required