User`s guide

R2008b
17-26
Tic and Toc Support Multiple Consecutive Timings
The tic and toc timing functions now support multiple consecutive timings. Call tic
with an output t0 to save the current time as the starting time for some operation. When
the operation completes, call toc with the same t0 as its input and MATLAB displays
the time between that particular tic and toc.
In the following example, MATLAB measures the time used by each function call and, at
the same time, measures the time required for the overall operation:
t0 = tic;
t1 = tic; W = myfun1(A,B); toc(t1)
t2 = tic; [X,Y] = myfun2(C,W); toc(t2)
t3 = tic; Z = myfun3(A,C,Y); toc(t3)
toc(t0)
You can still call tic and toc without any arguments. In this case, toc just measures
the time since the most recent tic.
See the function reference page for tic or toc for more information.
New Options for MException getReport
The MException getReport method has several new options available in this release.
You select these options when you call getReport. They give you more control over the
content and format of the information displayed or returned by getReport.
See the function reference page for getReport for more information.
what Function Returns Package Information
The what function now includes package information in its output display and a
package field in the structure array that it returns.
List the packages used in the MathWorks Communications System Toolbox™:
s = what('comm');
s.packages
ans =