This is a static copy of a profile reportHome
readScript>getnumval (18 calls, 0.011 sec)
Generated 05-Aug-2011 13:01:15 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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
234 | return; | 15 | 0 s | 0% |  |
232 | end | 26 | 0 s | 0% |  |
231 | eval(sprintf('par.%s.%s=%f;',t... | 26 | 0 s | 0% |  |
230 | for i=1:length(val) | 15 | 0 s | 0% |  |
220 | if (length(val)~=length(list)) | 15 | 0 s | 0% |  |
All other lines | | | 0.011 s | 100.0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 43 |
Non-code lines (comments, blank lines) | 14 |
Code lines (lines that can run) | 29 |
Code lines that did run | 19 |
Code lines that did not run | 10 |
Coverage (did run/can run) | 65.52 % |
Function listing
time calls line
192 function [par,q]=getnumval(par,list,type,val)
193
18 194 q=1;
195
196 % isolate number
18 197 val=sscanf(val,'%f');
198
199 % check that if the type is a bitmask, it can handle it properly
18 200 if(strcmp(type, 'bitmask'))
1 201 eval(sprintf('par.%s.%s = val'';', type, list{1}));
1 202 return;
203 end
204
17 205 if(strcmp(type, 'mains'))
1 206 eval(sprintf('par.%s.%s = val'';', type, list{1}));
1 207 return;
208 end
209
16 210 if(strcmp(type, 'rfi'))
1 211 eval(sprintf('par.%s.%s = val(1:4)'';', type, list{1}));
1 212 eval(sprintf('par.%s.%s = val(5:9)'';', type, list{2}));
1 213 eval(sprintf('par.%s.%s = val(10);', type, list{3}));
1 214 eval(sprintf('par.%s.%s = val(11);', type, list{4}));
1 215 return;
216 end
217
218
219 % check that list is same length as val
15 220 if (length(val)~=length(list))
221 disp('Parameter list values does not match those')
222 disp('given in the script file')
223 disp('Script will be ignored')
224 q=0;
225 par=[];
226 return
227 end
228
229 % set values
15 230 for i=1:length(val)
26 231 eval(sprintf('par.%s.%s=%f;',type,list{i},val(i)));
26 232 end
233
15 234 return;
Other subfunctions in this file are not included in this listing.