This is a static copy of a profile reportHome
readScript>getstrval (1 call, 0.011 sec)
Generated 05-Aug-2011 13:01:16 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 |
151 | end | 16 | 0.011 s | 100.0% |  |
166 | q=1; | 1 | 0 s | 0% |  |
165 | eval(sprintf('par.%s.%s=str;',... | 1 | 0 s | 0% |  |
164 | if (all(isGood)) | 1 | 0 s | 0% |  |
154 | if(~any(strcmp('alpha', str))) | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
readScript>getkey | subfunction | 1 | 0 s | 0% |  |
findspaces | function | 1 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.011 s | 100.0% |  |
Totals | | | 0.011 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 37 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 25 |
Code lines that did run | 11 |
Code lines that did not run | 14 |
Coverage (did run/can run) | 44.00 % |
Function listing
time calls line
137 function [par,q]=getstrval(par,list,type,str)
138
139 % get each individual inputs from str
1 140 str=findspaces(str);
141
142 % check that string all strings in str are in key
1 143 key=sort(getkey(list));
1 144 isGood = zeros(size(str));
1 145 for m=1:length(str)
16 146 if(any(strcmp(str(m), key)))
16 147 isGood(m) = 1;
148 else
149 isGood(m) = 0;
150 end
0.01 16 151 end
152
153
1 154 if(~any(strcmp('alpha', str)))
155 display('You must run some form of alpha correction');
156 display('To put the data in the correct format');
157 isGood(:) = 0;
158 end
159
160
161
162
163 % check that all
1 164 if (all(isGood))
1 165 eval(sprintf('par.%s.%s=str;',type,list{1}));
1 166 q=1;
167 else
168 disp('Parameter list values does not match those')
169 disp('given in the script file')
170 disp('routines listed are incorrect or mispelled');
171 disp('SCRIPT WILL BE IGNORED');
172 q=0; par=[];
173 end
Other subfunctions in this file are not included in this listing.