This is a static copy of a profile reportHome
imagesci/private/ispcx (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/ispcx.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 |
21 | end | 4 | 0 s | 0% |  |
20 | end | 4 | 0 s | 0% |  |
17 | tf = (header(1) == 10) &&a... | 4 | 0 s | 0% |  |
16 | else | 4 | 0 s | 0% |  |
14 | if (length(header) < 128) | 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 | 21 |
Non-code lines (comments, blank lines) | 9 |
Code lines (lines that can run) | 12 |
Code lines that did run | 10 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 83.33 % |
Function listing
time calls line
1 function tf = ispcx(filename)
2 %ISPCX Returns true for a PCX file.
3 % TF = ISPCX(FILENAME)
4
5 % Copyright 1984-2004 The MathWorks, Inc.
6 % $Revision: 1.1.6.3 $ $Date: 2004/04/01 16:12:28 $
7
4 8 fid = fopen(filename, 'r', 'ieee-le');
4 9 if (fid < 0)
10 tf = false;
4 11 else
4 12 header = fread(fid, 128, 'uint8');
4 13 fclose(fid);
4 14 if (length(header) < 128)
15 tf = false;
4 16 else
4 17 tf = (header(1) == 10) && ...
18 (ismember(header(2), [0 2 3 4 5])) && ...
19 (header(3) == 1);
4 20 end
4 21 end