This is a static copy of a profile report

Home

Function details for RandStream.RandStream>getargsThis is a static copy of a profile report

Home

RandStream.RandStream>getargs (Calls: 1, Time: 0.002 s)
Generated 28-Jul-2019 11:53:06 using performance time.
class method in file C:\Program Files\MATLAB\R2019a\toolbox\matlab\randfun\@RandStream\RandStream.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...m.RandStream>RandStream.RandStreamclass method1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
894
pname = convertStringsToChars(...
10.000 s14.7%
909
varargout{nparams+1} = unrecog...
10.000 s13.1%
900
varargout{i} = convertStringsT...
10.000 s8.6%
893
for j=1:2:nargs
10.000 s8.5%
906
end
10.000 s8.2%
All other lines  0.001 s47.0%
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 function32
Non-code lines (comments, blank lines)8
Code lines (lines that can run)24
Code lines that did run16
Code lines that did not run8
Coverage (did run/can run)66.67 %
Function listing
time 
Calls 
 line
 880 
function [varargout] = getargs(pnames,dflts,varargin)
 881 

 882 
% Initialize some variables
< 0.001 
      1 
 883
nparams = length(pnames); 
      1 
 884
varargout = dflts; 
< 0.001 
      1 
 885
unrecog = {}; 
< 0.001 
      1 
 886
nargs = length(varargin); 
 887 

 888 
% Must have name/value pairs
< 0.001 
      1 
 889
if mod(nargs,2)~=0 
 890 
    error(message('MATLAB:RandStream:WrongNumberArgs'));
< 0.001 
      1 
 891
else 
 892 
    % Process name/value pairs
< 0.001 
      1 
 893
    for j=1:2:nargs 
< 0.001 
      1 
 894
        pname = convertStringsToChars(varargin{j}); 
      1 
 895
        if ~ischar(pname) 
 896 
            error(message('MATLAB:RandStream:BadParamName'));
 897 
        end
< 0.001 
      1 
 898
        i = find(strncmpi(pname,pnames,length(pname))); 
< 0.001 
      1 
 899
        if isscalar(i) 
< 0.001 
      1 
 900
            varargout{i} = convertStringsToChars(varargin{j+1}); 
 901 
        elseif isempty(i)
 902 
            error(message('MATLAB:RandStream:UnrecognizedParamName',pname));
 903 
        else
 904 
            error(message('MATLAB:RandStream:AmbiguousParamName',pname));
 905 
        end
< 0.001 
      1 
 906
    end 
      1 
 907
end 
 908 

< 0.001 
      1 
 909
varargout{nparams+1} = unrecog; 
 910 

< 0.001 
      1 
 911
end 

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