This is a static copy of a profile report

Home

subRange (Calls: 10, Time: 0.001 s)
Generated 04-Jun-2021 04:11:24 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\io\spreadsheet\+matlab\+io\+spreadsheet\+internal\subRange.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
readSpreadsheet>getDataRangesubfunction2
readSpreadsheet>readDataFromSheetsubfunction6
readSpreadsheet>readVariableMetadatasubfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
14
if ~exist('orientation','var')...
100.001 s45.5%
15
sub(2) = range(2) + span(1) - ...
100.000 s18.7%
21
end
100.000 s0.4%
13
width = span(end) - span(1) + ...
100.000 s0.1%
16
sub(4) = width;
100.000 s0.1%
All other lines  0.000 s35.3%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function21
Non-code lines (comments, blank lines)11
Code lines (lines that can run)10
Code lines that did run7
Code lines that did not run3
Coverage (did run/can run)70.00 %
Function listing
time 
Calls 
 line
   1 
function sub = subRange(range,span,orientation)
   2 
    %SUBRANGE subdivide a range
   3 
    %   range - a four element range vector [startRow startColumn numRow numColumn]
   4 
    %   span - the column to use, or a start and end column to use.
   5 
    %   orientation - 'column' (default) or 'row'. 
   6 
    %
   7 
    %   Returns a four element range of only the columns/row of interest.
   8 
    
   9 
    % Copyright 2016 The MathWorks, Inc.
  10 
    
< 0.001 
     10 
  11
    sub = range; 
  12 
    %Select the span of columns
< 0.001 
     10 
  13
    width = span(end) - span(1) + 1; 
< 0.001 
     10 
  14
    if ~exist('orientation','var') || strcmp(orientation,'column') 
< 0.001 
     10 
  15
        sub(2) = range(2) + span(1) - 1; 
< 0.001 
     10 
  16
        sub(4) = width; 
  17 
    else
  18 
        sub(1) = range(1) + span(1) - 1;
  19 
        sub(3) = width;
< 0.001 
     10 
  20
    end 
< 0.001 
     10 
  21
end 

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