A function is a group of
statements that together perform a task. In MATLAB, functions are defined in separate files. The name of the file
and of the function should be the same. These are the following functions.
1) Anonymous
Function: An anonymous function is like an inline function in
traditional programming languages, defined within a single MATLAB statement. It
consists of a single MATLAB expression and any number of input and
output arguments.
2) Primary
and sub-functions: Primary functions can be called from outside of
the file that defines them, either from command line or from other functions,
but sub-functions cannot be called from command line or other functions,
outside the function file.
Sub-functions are visible only to the primary
function and other sub-functions within the function file that defines them.
For more information visit us:
http://www.guidancepoint.in/
Comments
Post a Comment