Types of Functions


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


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS