This is a static copy of a profile reportHome
importdata>LocalRowColShuffle (4 calls, 0.000 sec)
Generated 05-Aug-2011 13:01:25 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/iofun/importdata.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 |
288 | end | 4 | 0 s | 0% |  |
287 | out.colheaders = in.textdata(e... | 4 | 0 s | 0% |  |
285 | elseif tn == dn | 4 | 0 s | 0% |  |
282 | if tn == 1 && tm == dm | 4 | 0 s | 0% |  |
280 | [tm, tn] = size(in.textdata); | 4 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 18 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 11 |
Code lines that did run | 8 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 72.73 % |
Function listing
time calls line
271 function out = LocalRowColShuffle(in)
272
4 273 out = in;
274
4 275 if isempty(in) || ~isfield(in, 'data') || ~isfield(in,'textdata') || isempty(in.data) || isempty(in.textdata)
276 return;
277 end
278
4 279 [dm, dn] = size(in.data);
4 280 [tm, tn] = size(in.textdata);
281
4 282 if tn == 1 && tm == dm
283 % use as row headers
284 out.rowheaders = in.textdata(:,end);
4 285 elseif tn == dn
286 % use last row as col headers
4 287 out.colheaders = in.textdata(end,:);
4 288 end
Other subfunctions in this file are not included in this listing.