
- •Version of matlab on different machines. It does not offer direct
- •In the workspace or file. You must use the functional form of who when
- •In a nested function, variables are grouped into those in the nested
- •If you run out of memory often, here are some additional system
- •If you do not specify filename, the load function searches for a file
- •If any data items require features that the specified version does not
- •Valid options for format are:
- •VirtualAddressSpace: [1x1 struct]
- •If the flag -inplace is used, the result is placed in the same
- •Inmem List functions in memory.
- •Variable names
- •Visible.
- •Is automatically run.
- •Is stored in a string.
- •Controlling the command window.
- •Vdspdebug/cd
- •Input parameters:
- •If the specified name cannot be found, an empty matrix is returned.
- •Idivide - Integer division with rounding option.
- •Interactive user input which cannot be provided.
- •Debugging.
- •If the matlabpath contains 'relative' directories then any file in those
- •Indicates who calls whom. Called_from is arranged so that
- •Information from the shrlib library file. Notfound is a cell array of
- •Invoked from the Swing Event Dispatch Thread.
Debugging.
<debug> - List debugging commands.
DEBUG List M-file debugging functions
dbstop - Set breakpoint.
dbclear - Remove breakpoint.
dbcont - Resume execution.
dbdown - Change local workspace context.
dbmex - Enable MEX-file debugging.
dbstack - List who called whom.
dbstatus - List all breakpoints.
dbstep - Execute one or more lines.
dbtype - List M-file with line numbers.
dbup - Change local workspace context.
dbquit - Quit debug mode.
When a breakpoint is hit, MATLAB goes into debug mode, the debugger
window becomes active, and the prompt changes to a K>>. Any MATLAB
command is allowed at the prompt.
To resume M-file function execution, use DBCONT or DBSTEP.
To exit from the debugger use DBQUIT.
Overloaded methods:
mpc555_tgtaction/debug
Tools to locate dependent functions of an M-file.
<depfun> - Locate dependent functions of an M-file or P-file.
DEPFUN Locate dependent functions of a code file.
TRACE_LIST = DEPFUN(FUN) returns a cell array of files of the dependent
functions of FUN. To be analyzed, FUN must be on the MATLABPATH as
determined by the WHICH command. FUN is directly dependent on the functions
that it calls; FUN is indirectly dependent on the functions called by
the functions called by FUN, and so on. The files are analyzed and the
transitive closure done based on the information in the dispatcher.
The TRACE_LIST produced usually includes 'extra' files that would
never be called if FUN were actually evaluated. The files are listed
by the original arguments following by a list of additional
dependent files. Any duplicate argument files are dropped from the final
list. Script files can be included but the dependency analysis is
wildly conservative.
If the matlabpath contains 'relative' directories then any file in those
directories will have a 'relative' path.
Note: It cannot be guaranteed that DEPFUN will find every dependent file.
Some dependent files can be hidden in callbacks, or can be constructed
dynamically for evaluation, for example. Also note that the list of
functions returned by DEPFUN often includes extra files that would never
be called if the specified function were actually evaluated.
[TRACE_LIST, BUILTINS, MATLAB_CLASSES] = DEPFUN(FUN) also returns a
cell array of all builtin function names and MATLAB class names called
by FUN and its dependent functions.
The syntax for DEPFUN with all possible outputs is:
[TRACE_LIST, BUILTINS, MATLAB_CLASSES, PROB_FILES, PROB_SYMBOLS,...
EVAL_STRINGS, CALLED_FROM, OPAQUE_CLASSES] = DEPFUN(FUN)
where:
PROB_FILES is a structure array of M/P-files that DEPFUN could not parse,
locate, or access. Parsing problems can arise from MATLAB syntax errors.
The fields of the structure are:
.name - path to the file
.listindex - trace_list index
.errmsg - error message string
.errid - error id, if present
PROB_SYMBOLS [NOT IMPLEMENTED] is a structure array that indicates which
symbol names DEPFUN could not resolve as functions or variables. The
fields of the structure are:
.name - name of the symbol
.fcn_id - double array of trace_list indices
EVAL_STRINGS is a cell array of the files in TRACE_LIST that call eval
(or evalin, feval, fevalc, or evalc). These calls might use functions
that are not in TRACE_LIST.
CALLED_FROM is a cell array where each element is a double array and