Installation guide
Profiling fo r Improving Performance
To profile an M-file or a line of code, follow these steps:
1 In the Ru n this code field in the Profiler, type the statem ent you want
to run.
Youcanrunthisexample
[t,y] = ode23('lotka',[0 2],[20;20])
asthecodeisprovidedwithMATLABdemos. It runs the Lotka-Volterra
predator-prey p opulatio n model. For more information abou t this model,
type
lotkademo, which runs the demonstration.
To run a statement you previously profiled in the current MATLAB session,
select the statem ent from the list box — MATLAB automat ically starts
profiling the co de, so s kip to step 3 .
7-31