This is a static copy of a profile report

Home

specgraph/private/getRealData (37 calls, 0.010 sec)
Generated 14-Nov-2016 07:47:13 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/specgraph/private/getRealData.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
specgraph/...te/areaHGUsingMATLABClassesfunction37
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
9
narginchk(1, inf);
370.010 s100.0%
13
if ~all(cellfun(@isreal, args)...
370 s0%
11
nargs = length(args);
370 s0%
All other lines  0 s0%
Totals  0.010 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function20
Non-code lines (comments, blank lines)10
Code lines (lines that can run)10
Code lines that did run3
Code lines that did not run7
Coverage (did run/can run)30.00 %
Function listing
time 
calls 
 line
   1 
function args = getRealData(args)
   2 
% This function is undocumented and may change in a future release.
   3 

   4 
   %  Copyright 2013 The MathWorks, Inc.
   5 

   6 
   % getRealData returns the real components of ARGS. If ARGS contains any
   7 
   % complex data, a warning is displayed.
   8 

  0.01 
     37 
   9 
narginchk(1, inf); 
  10 

     37 
  11 
nargs = length(args); 
  12 

     37 
  13 
if ~all(cellfun(@isreal, args)) 
  14 
    warning(message('MATLAB:specgraph:private:specgraph:UsingOnlyRealComponentOfComplexData'));
  15 
    for i = 1:nargs
  16 
        if isnumeric(args{i})
  17 
            args{i} = real(args{i});
  18 
        end
  19 
    end
  20 
end