Programming Previous page   Next Page

Types of Functions


The basic function types that you can work with in MATLAB are

Overview of MATLAB Function Types
An introduction to the basic types of functions available with MATLAB
Anonymous Functions
Functions defined from a MATLAB expression and without requiring an M-file
Primary M-File Functions
The first, and often the main, function in an M-file
Nested Functions
Functions defined within the body of another function
Subfunctions
Any functions that follow the primary function in an M-file
Private Functions
Functions with restricted access, callable only from an M-file function in the parent directory
Overloaded Functions
Functions with multiple implementations that respond to different types of inputs accordingly


Previous page  Running External Programs Overview of MATLAB Function Types Next page

© 1994-2005 The MathWorks, Inc.