This is a static copy of a profile reportHome
imagesci/private/ispbm (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/ispbm.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% |  |
14 | tf = (count == 3) && .... | 4 | 0 s | 0% |  |
13 | fclose(fid); | 4 | 0 s | 0% |  |
12 | [sig,count] = fread(fid, 3, 'u... | 4 | 0 s | 0% |  |
11 | else | 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) | 13 |
Code lines (lines that can run) | 8 |
Code lines that did run | 7 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 87.50 % |
Function listing
time calls line
1 function tf = ispbm(filename)
2 %ISPBM Returns true for a PBM file.
3 % TF = ISPBM(FILENAME)
4
5 % Copyright 1984-2008 The MathWorks, Inc.
6 % $Revision: 1.1.6.4 $ $Date: 2008/10/02 18:59:11 $
7
4 8 fid = fopen(filename, 'r', 'ieee-le');
4 9 if (fid < 0)
10 tf = false;
4 11 else
4 12 [sig,count] = fread(fid, 3, 'uint8');
4 13 fclose(fid);
4 14 tf = (count == 3) && ...
15 (isequal(sig(1:2), [80;49]) || isequal(sig(1:2), [80;52])) && ...
16 (isequal(sig(3), 10) || ... % \n
17 isequal(sig(3), 13) || ... % \r
18 isequal(sig(3), 35) || ... % "#"
19 isequal(sig(3), 9) || ... % \t
20 isequal(sig(3), 32)); % space
4 21 end