This is a static copy of a profile report

Home

fullfile (6 calls, 0.020 sec)
Generated 05-Nov-2014 07:52:31 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
urlwritefunction4
ipplfunction1
imreconstructfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
42
f = [f fs part]; %#ok<AGROW...
40.010 s50.0%
48
if bIsPC
60 s0%
45
end
40 s0%
44
end
40 s0%
43
end
40 s0%
All other lines  0.010 s50.0%
Totals  0.020 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
ispcfunction60 s0%
filesepfunction60 s0%
Self time (built-ins, overhead, etc.)  0.020 s100.0%
Totals  0.020 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function50
Non-code lines (comments, blank lines)29
Code lines (lines that can run)21
Code lines that did run16
Code lines that did not run5
Coverage (did run/can run)76.19 %
Function listing
   time   calls  line
1 function f = fullfile(varargin)
2 %FULLFILE Build full filename from parts.
3 % FULLFILE(D1,D2, ... ,FILE) builds a full file name from the
4 % directories D1,D2, etc and filename FILE specified. This is
5 % conceptually equivalent to
6 %
7 % F = [D1 filesep D2 filesep ... filesep FILE]
8 %
9 % except that care is taken to handle the cases where the directory
10 % parts D1, D2, etc. may begin or end in a filesep. Specify FILE = ''
11 % to build a pathname from parts.
12 %
13 % Examples
14 % To build platform dependent paths to files:
15 % fullfile(matlabroot,'toolbox','matlab','general','Contents.m')
16 %
17 % To build platform dependent paths to a directory:
18 % addpath(fullfile(matlabroot,'toolbox','matlab',''))
19 %
20 % See also FILESEP, PATHSEP, FILEPARTS.
21
22 % Copyright 1984-2005 The MathWorks, Inc.
23 % $Revision: 1.19.4.4 $ $Date: 2009/02/13 15:12:17 $
24
6 25 error(nargchk(1, Inf, nargin, 'struct'));
26
6 27 fs = filesep;
6 28 f = varargin{1};
6 29 bIsPC = ispc;
30
6 31 for i=2:nargin,
4 32 part = varargin{i};
4 33 if isempty(f) || isempty(part)
34 f = [f part]; %#ok<AGROW>
4 35 else
36 % Handle the three possible cases
4 37 if (f(end)==fs) && (part(1)==fs),
38 f = [f part(2:end)]; %#ok<AGROW>
4 39 elseif (f(end)==fs) || (part(1)==fs || (bIsPC && (f(end)=='/' || part(1)=='/')) )
40 f = [f part]; %#ok<AGROW>
4 41 else
0.01 4 42 f = [f fs part]; %#ok<AGROW>
4 43 end
4 44 end
4 45 end
46
47 % Be robust to / or \ on PC
6 48 if bIsPC
49 f = strrep(f,'/','\');
50 end

Other subfunctions in this file are not included in this listing.