This is a static copy of a profile reportHome
imagesci/private/iscur (4 calls, 0.000 sec)
Generated 05-Aug-2011 13:01:19 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/imagesci/private/iscur.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 |
25 | end | 4 | 0 s | 0% |  |
24 | fclose(fid); | 4 | 0 s | 0% |  |
18 | if (tf) | 4 | 0 s | 0% |  |
15 | tf = isequal(sig, [0; 2]); | 4 | 0 s | 0% |  |
14 | sig = fread(fid, 2, 'uint16'); | 4 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 25 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 13 |
Code lines that did run | 8 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 61.54 % |
Function listing
time calls line
1 function tf = iscur(filename)
2 %ISCUR Returns true for a CUR file.
3 % TF = ISCUR(FILENAME)
4 %
5 % See also WK1READ.
6
7 % Copyright 1984-2003 The MathWorks, Inc.
8 % $Revision: 1.1.6.2 $ $Date: 2005/11/15 01:12:30 $
9
4 10 fid = fopen(filename, 'r', 'ieee-le');
4 11 if (fid < 0)
12 tf = false;
4 13 else
4 14 sig = fread(fid, 2, 'uint16');
4 15 tf = isequal(sig, [0; 2]);
16
17 % Might be a WK1 file.
4 18 if (tf)
19 fseek(fid, 0, 'bof');
20 sig = fread(fid, 6, 'uchar');
21 tf = ~isequal(sig, [0 0 2 0 6 4]'); % WK1 BOF identifier.
22 end
23
4 24 fclose(fid);
4 25 end