Page 69 - A Guide to MATLAB for Beginners and Experienced Users
P. 69
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 withcomplicated
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. 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 does not affect the way MATLAB processes the command
internally, as you can see from its response to the command z.
50