This is a static copy of a profile report

Home

FastVarOpts>FastVarOpts.fixSelection (Calls: 4, Time: 0.002 s)
Generated 04-Jun-2021 04:11:24 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\FastVarOpts.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
FastVarOpts>FastVarOpts.getVarOptsStructclass method4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
291
if ~all(selection > 0 &...
40.001 s53.1%
290
elseif isnumeric(selection)
40.000 s26.1%
299
end
40.000 s0.1%
287
selection = convertCharsToStri...
40.000 s0.0%
288
if isstring(selection)
40.000 s0.0%
All other lines  0.000 s20.6%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function16
Non-code lines (comments, blank lines)3
Code lines (lines that can run)13
Code lines that did run7
Code lines that did not run6
Coverage (did run/can run)53.85 %
Function listing
time 
Calls 
 line
 284 
        function selection = fixSelection(obj,selection)
 285 
            % Fix the selection from text array of names to numeric selection
 286 
            % or validate the numeric selection.
< 0.001 
      4 
 287
            selection = convertCharsToStrings(selection); 
< 0.001 
      4 
 288
            if isstring(selection) 
 289 
                selection = obj.getNumericSelection(selection);
< 0.001 
      4 
 290
            elseif isnumeric(selection) 
< 0.001 
      4 
 291
                if ~all(selection > 0 & isfinite(selection) & floor(selection)==selection & selection <= numel(obj.OptionsStruct.Types)) 
 292 
                    error(message('MATLAB:textio:io:BadNumericSelection'));
< 0.001 
      4 
 293
                end 
 294 
            elseif islogical(selection)
 295 
                selection = find(selection);
 296 
            else
 297 
                error(message('MATLAB:textio:io:BadSelectionInput'));
< 0.001 
      4 
 298
            end 
< 0.001 
      4 
 299
        end 

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