Types of Functions É 143
>> clear function_name
% Remove specified function from workspace
>> clear functions
% Remove all compiled M-functions
>> clear all
% Remove all variables and functions
MATLAB supports different types of functions for solving a variety of problems. You have
seen so far examples of normal functions. There are other types of functions such as function
functions, subfunctions, and private functions. These will be discussed in the next section 5.4.1.
5.4.1 Function Functions, Feval, and Inline
Function functions are those functions that take user-defined functions as input arguments instead
of numeric arrays. MATLAB supports calling functions with input arguments that include the
names of other functions. For example, MA ...