This is a static copy of a profile reportHome
getMainDir (24 calls, 0.000 sec)
Generated 05-Aug-2011 13:01:16 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/support/getMainDir.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
14 | return; | 24 | 0 s | 0% |  |
12 | eval(sprintf('load %s/%s/reduc... | 24 | 0 s | 0% |  |
10 | [home,installeddir]=where_am_i... | 24 | 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 |
where_am_i | function | 24 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Code Analyzer results
Line number | Message |
1 | The function return value 'maindir' might be unset. |
1 | Input argument 'd' might be unused, although a later one is used. Consider replacing it by ~. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 14 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 3 |
Code lines that did run | 3 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function maindir = getMainDir(d, field)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 % function maindir = getMainDir(d, field)
5 %
6 % gets the main directory of this data reduction
7 %
8 % sjcm
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24 10 [home,installeddir]=where_am_i();
11
24 12 eval(sprintf('load %s/%s/reduc/maindir_%s.mat',home,installeddir,field));
13
24 14 return;
Other subfunctions in this file are not included in this listing.