This is a static copy of a profile reportHome
get_mod_transfer_inv (1 call, 18.969 sec)
Generated 15-Mar-2007 12:01:42 using real time.
M-function in file c:\mind07\get_mod_transfer_inv.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 |
7 | if ismember(mod,mod_transfer{k... | 318828 | 17.172 s | 90.5% |  |
6 | for j=1:3 | 106276 | 0.875 s | 4.6% |  |
11 | end | 318828 | 0.313 s | 1.6% |  |
9 | else | 318260 | 0.297 s | 1.6% |  |
10 | end | 318260 | 0.234 s | 1.2% |  |
Other lines & overhead | | | 0.078 s | 0.4% |  |
Totals | | | 18.969 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
ismember | M-function | 318828 | 12.469 s | 65.7% |  |
Self time (built-ins, overhead, etc.) | | | 6.500 s | 34.3% |  |
Totals | | | 18.969 s | 100% | |
M-Lint results
Line number | Message |
3 | Terminate statement with semicolon to suppress output. |
7 | IF may not be aligned with its matching END (line 10). |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 13 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 11 |
Code lines that did run | 11 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function mod_transfer_inv=get_mod_transfer_inv(mod_transfer)
2 %computs inverse of "mod_transfer"
1 3 n_mods=length(mod_transfer);mod_transfer_inv=cell(1,n_mods);n_mods
1 4 for mod=1:n_mods
326 5 for k=1:n_mods
0.88 106276 6 for j=1:3
17.17 318828 7 if ismember(mod,mod_transfer{k,j})
568 8 mod_transfer_inv{mod}=[ mod_transfer_inv{mod},k];
0.30 318260 9 else
0.23 318260 10 end
0.31 318828 11 end
0.08 106276 12 end
326 13 end