This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
imagesci/private/imftypefunction4
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
25
end
40 s0%
24
fclose(fid);
40 s0%
18
if (tf)
40 s0%
15
tf = isequal(sig, [0; 2]);
40 s0%
14
sig = fread(fid, 2, 'uint16');
40 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function25
Non-code lines (comments, blank lines)12
Code lines (lines that can run)13
Code lines that did run8
Code lines that did not run5
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