This is a static copy of a profile reportHome
select (98 calls, 0.000 sec)
Generated 15-Mar-2007 12:01:43 using real time.
M-function in file c:\mind07\select.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 | r=length(probs); | 98 | 0.000 s | 100.0% |  |
4 | number=1+sum(rand(1)>cumsum... | 98 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
No childrenM-Lint results
Line number | Message |
3 | The value assigned here to variable 'r' might never be used. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 4 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 2 |
Code lines that did run | 2 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function number=select(probs)
2 %selects at random integer from 1 to length(probs) with probabilities in "probs"
< 0.01 98 3 r=length(probs);
98 4 number=1+sum(rand(1)>cumsum(probs));