operations like 1/0. Matlab as a calculator includes a variety of build-in
mathematical functions like: trigonometric, exponential, complex, rounding
and remainder, etc. Table 1 below, depicts these elementary mathematical
build-in functions (to learn how to use these commands, review the Matlab
help facilities located in section 1.5.3).
Note the build-in functions exhibited in Table 1 have their own calling syntax.
For example, if you type
s
s
i
i
n
n in the command window, Matlab returns the
following error massage:
“??? Error using ==> sin”
“Incorrect number of inputs.”
This happened because the
s
s
i
i
n
n
function requires an input expression like a
number enclosed in brackets. If you enter:
“
s
s
i
i
n
n(5)”
then you get an answer:
“ans =
-0.9589”
In the rest of this handout, only the name of the build in functions will be
given. Beside some exceptions where the correct calling syntax of a function
is fully tabulated, the user is responsible in knowing the necessary input
arguments to the function. Additional the use of the command window will
be apparent as you read this manuscript since the learning of a computer
programming language is pure a “learning by doing” process.
1.5.1.1 Controlling Command Window Input and Output
This section presents ways by which the user can control the command
window input and output.
Kommentare zu diesen Handbüchern