This is a static copy of a profile reportHome
monthStr2num (10 calls, 0.000 sec)
Generated 05-Aug-2011 13:00:30 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/dateconv/monthStr2num.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
tstr2mjd | function | 10 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
17 | dateOut=dateIn; | 10 | 0 s | 0% |  |
15 | end | 120 | 0 s | 0% |  |
14 | end | 10 | 0 s | 0% |  |
13 | dateIn.month=i; | 10 | 0 s | 0% |  |
12 | if (strcmp(dateIn.month,month{... | 120 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
getmonth | function | 10 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 17 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 7 |
Code lines that did run | 7 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function dateOut=monthStr2num(dateIn)
2
3 %dateOut=monthStr2num(dateIn)
4 %
5 %Converts output structure of tstr2date.m
6 %to have nummeric (1:12) month field, rather
7 %than string field.
8
10 9 month=getmonth;
10
10 11 for i=1:12
120 12 if (strcmp(dateIn.month,month{i}))
10 13 dateIn.month=i;
10 14 end
120 15 end
16
10 17 dateOut=dateIn;