We are going to write a MATLAB script (i.e. a file containing MATLAB
commands) to solve problems of the form using the
fixed-point iteration method, i.e. we need to find the value of
for which
(the root). This script will be called
iteration.m and we will construct it step by step.
The first steps are to open a new file called iteration.m
using the Nedit editor and to open a MATLAB window, by typing matlab
at the unix prompt in an xterm window.
Whenever new code is to be added to the file
iteration.m it will be introduced with the phrase:
.