Matlab Commands
## Matlab Commands for Test 1

Here is a list of what you need
to be able to do with Matlab for the first test:

- arithmetic
- trig, exponentials, and log (note that log( ) is the
natural log in MATLAB)
- for more digits in the Matlab answer, type ``format long'' at the
prompt
- symbolically integrate and differentiate (the commands are int and diff)
- solve differential equations (the command is dsolve)
- plot graphs (example: ezplot('sin(x)',[0,pi]))
- plot direction fields with dfield7.m
- using dfield7.m, plot solutions with given initial conditions
- use eul.m to compute Euler's method
- plot the result of Euler's method with the plot command

For help with a command enter "help" followed by the name of the command, for
example "help int" will give you information on the int command.

When plotting functions with the ezplot command, you may find the commands
"hold on" and "hold off" useful. If you enter "hold on" at the command prompt, all
future graphs that you plot will appear in the same figure as the current graph
(until you enter "hold off"). If you enter "hold off" at the command prompt,
each graph will replace the previous graphs. For example, if you wish to plot
the graph *y* = *x* sin(*x*) and the constant function
*y* = 0 on the interval
from -pi to pi, you would enter:

>> hold on
>> ezplot('x*sin(x)',[-pi,pi])
>> ezplot('0',[-pi,pi])