This is a static copy of a profile report

Home

squeeze (84677 calls, 7.911 sec)
Generated 05-Nov-2014 07:52:41 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/elmat/squeeze.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
interp3function417
preprocessfunction606
tp_nucimgfeatfunction202
tp_imtightfunction202
tp_spcylfeatfunction202
find_cell_codesfunction202
tp_stretch3dfunction82820
tz_maskimg_3dfunction26
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
21
if ~ismatrix(a)
846771.702 s21.5%
23
siz(siz==1) = []; % Remove sin...
846771.422 s18.0%
24
siz = [siz ones(1,2-length(siz...
846771.392 s17.6%
25
b = reshape(a,siz);
846771.021 s12.9%
22
siz = size(a);
846770.661 s8.4%
All other lines  1.712 s21.6%
Totals  7.911 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function28
Non-code lines (comments, blank lines)17
Code lines (lines that can run)11
Code lines that did run6
Code lines that did not run5
Coverage (did run/can run)54.55 %
Function listing
   time   calls  line
1 function b = squeeze(a)
2 %SQUEEZE Remove singleton dimensions.
3 % B = SQUEEZE(A) returns an array B with the same elements as
4 % A but with all the singleton dimensions removed. A singleton
5 % is a dimension such that size(A,dim)==1. 2-D arrays are
6 % unaffected by squeeze so that row vectors remain rows.
7 %
8 % For example,
9 % squeeze(rand(2,1,3))
10 % is 2-by-3.
11 %
12 % See also SHIFTDIM.
13
14 % Copyright 1984-2010 The MathWorks, Inc.
15 % $Revision: 1.14.4.3 $ $Date: 2010/08/23 23:08:14 $
16
0.53 84677 17 if nargin==0
18 error(message('MATLAB:squeeze:NotEnoughInputs'));
19 end
20
1.70 84677 21 if ~ismatrix(a)
0.66 84677 22 siz = size(a);
1.42 84677 23 siz(siz==1) = []; % Remove singleton dimensions.
1.39 84677 24 siz = [siz ones(1,2-length(siz))]; % Make sure siz is at least 2-D
1.02 84677 25 b = reshape(a,siz);
26 else
27 b = a;
28 end