Installation guide

3 Running Functions Command Window and History
Definition of a Statement. All of the in f ormation yo u type before pressing
Enter or Return is known as a statement. This can include:
Variable assignments: For example,
a=3
C ommands: M-files provided with M ATLAB or toolboxes that do not a ccept
input arguments, for ex ample,
clc, which clears the Comm and Window.
Scripts: M-files (MATLAB program files) you write that do not take input
arguments or return output arguments, for example,
myfile.m.
F unctions and their arguments: M-files that can accept input arguments
and return output a rguments, for example,
magic.
Some functions support a form that does not require an input argument,
thereby operating as commands. For convenience, the term function is used to
refer to both functions and commands.
When you enter program control statements, such as
if ... end,the
prompt does not appear until you complete the set o f functions. In the
following example, you press Enter at the end of each line, but the prompt
does not appear until you complete the set of statements with
end.
Running M -Files
Run M-files, files that contain code in the M ATLAB language, the same way
that you would run any other MATLAB function. Type the name of the M-file
in the C ommand Window and press Enter or Return. The M-file must be in
3-8