Programming and Data Types    

Querying Which Method MATLAB Will Call

You can determine which method MATLAB will call using the which command. For example,

However, if p is a portfolio object,

The which command determines which version of pie3 MATLAB will call if you passed a portfolio object as the input argument. To see a list of all versions of a particular function that are on your MATLAB path, use the -all option. See the which reference page for more information on this command.


  Selecting a Method Maximizing MATLAB Performance