|Programming and Data Types|
Running the Profiler
This is a quick summary. Details follow.
To profile an M-file or a line of code, follow these steps:
as the code is provided with MATLAB demos. It runs the Lotka-Volterra predator-prey population model. For more information about this model, type
lotkademo, which runs demonstration.
If you are running a statement you previously profiled in the current MATLAB session, select the statement from the list box and skip to step 3.
When the profiling is finished, the Profile time indicator becomes black and shows the length of time the Profiler ran.
This is not the actual time that your statements took to run, but is the time elapsed from when you clicked Start Profiling until you clicked Stop Profiling. If the time reported is much different from what you expected (for example hundreds of seconds for a simple statement), you might have had profiling on longer than you realized.
Profiling a Graphical User Interface. You can run the Profiler for a graphical user interface, such as the Filter Design and Analysis tool included with the Signal Processing Toolbox. You can also run the Profiler for an interface you created, such as one built using GUIDE.
To profile a graphical user interface, do the following.
Profiling Statements from the Command Window. To profile more than one statement, do the following:
Profiler onwhen MATLAB is not busy and the Profiler is running.
|The Profiler||Profile Summary Report|