Next: 1.7 Using MATLAB's help
Up: 1. Getting started with
Previous: 1.5 Avoiding carpal-tunnel syndrome:
  Contents
After you start writing longer scripts and programs, you will find that
often MATLAB's output scrolls off the screen, forcing you to use the mouse
to scroll back to see the beginning of the output. You can force MATLAB
to show just one screenful at a time by typing more on. (Unix savvy
readers will recognize more as well.) Try typing more on then
type help elfun. Hit the space bar to see successive screens.
MATLAB's precision when doing computation is about 15 digits. The
format command decides how many digits are shown and in which
format. Try the following and see how pi is displayed for each
setting.
format long
format long e
format short e
format short
For the whole story on format and all its possible settings, type
help format.
Gus Hart
2005-01-28