Programming and Data Types | ![]() |
Querying Which Method MATLAB Will Call
You can determine which method MATLAB will call using the which
command. For example,
which pie3
your_matlab_path
/toolbox/matlab/specgraph/pie3.m
However, if p
is a portfolio object,
which pie3(p)
dir_on_your_path
/@portfolio/pie3.m % portfolio method
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 |