This is a static copy of a profile reportHome
get_mod_for_g (1 call, 0.156 sec)
Generated 15-Mar-2007 12:01:41 using real time.
M-function in file c:\mind07\get_mod_for_g.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
3 | load c:\mind_data06 G | 1 | 0.141 s | 90.0% |  |
6 | g_mod(g)=G(g).modality; | 1128 | 0.016 s | 10.0% |  |
7 | end | 1128 | 0 s | 0% |  |
5 | for g=1:r | 1 | 0 s | 0% |  |
4 | r=size(G);r=r(2); | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.156 s | 100% | |
Children (called functions)
No childrenM-Lint results
Line number | Message |
6 | Array 'g_mod' might be grown using indexing. Consider preallocating for speed. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 7 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 5 |
Code lines that did run | 5 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function g_mod=get_mod_for_g
2 %compute modality number for each generato
0.14 1 3 load c:\mind_data06 G
1 4 r=size(G);r=r(2);
1 5 for g=1:r
0.02 1128 6 g_mod(g)=G(g).modality;
1128 7 end