This is a static copy of a profile reportHome
readScript>interpret (21 calls, 0.044 sec)
Generated 05-Aug-2011 13:01:14 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/support/readScript.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
readScript | function | 21 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
132 | [par,q]=getnumval(par,list,typ... | 18 | 0.011 s | 25.0% |  |
130 | [par,q]= getSingleStrVal(par, ... | 2 | 0.011 s | 25.0% |  |
128 | [par,q]=getstrval(par,list,typ... | 1 | 0.011 s | 25.0% |  |
111 | f=regexpi(lin,':'); | 21 | 0.011 s | 25.0% |  |
133 | end | 18 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.044 s | 100% | |
Children (called functions)
Code Analyzer results
Line number | Message |
113 | To improve performance, use logical indexing instead of FIND. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 28 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 18 |
Code lines that did run | 12 |
Code lines that did not run | 6 |
Coverage (did run/can run) | 66.67 % |
Function listing
time calls line
106 function [par,q]=interpret(par,lin)
107
108
109 % find matching cal type
21 110 caltype=parlist('caltype');
0.01 21 111 f=regexpi(lin,':');
112
21 113 type=caltype{find(strcmp(lin(1:f-1),caltype))};
21 114 if (isempty(type))
115 disp('Unknown calibration type detected in script file')
116 disp('Script will be ignored')
117 q=0;
118 par=[];
119 return
120 end
121
122 % get parameter list for cal type
21 123 list=parlist(type);
124
125
126 % there two types of inputs, numerical or string
21 127 if (isstrval(list)==1)
0.01 1 128 [par,q]=getstrval(par,list,type,lin(f+1:end));
20 129 elseif(isstrval(list)==2)
0.01 2 130 [par,q]= getSingleStrVal(par, list, type, lin(f+1:end));
18 131 else
0.01 18 132 [par,q]=getnumval(par,list,type,lin(f+1:end));
18 133 end
Other subfunctions in this file are not included in this listing.