tabular.matchPropertyName (Calls: 8, Time: 0.002 s)
Generated 16-Jul-2020 17:09:56 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/datatypes/tabular/@tabular/matchPropertyName.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
tabular.setProperty | function | 8 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
6 | if ~matlab.internal.datatypes.... | 8 | 0.001 s | 57.9% | |
13 | j = find(strcmp(name,propertyN... | 8 | 0.000 s | 13.8% | |
21 | name = propertyNames{j}; | 8 | 0.000 s | 10.2% | |
10 | if nargin < 2 || ~exact | 8 | 0.000 s | 0.1% | |
15 | if isempty(j) | 8 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 18.0% | |||
Totals | 0.002 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
isScalarText | function | 8 | 0.001 s | 27.8% | |
Self time (built-ins, overhead, etc.) | 0.002 s | 72.2% | |||
Totals | 0.002 s | 100% |
Total lines in function | 21 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 14 |
Code lines that did run | 10 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 71.43 % |
time | Calls | line | |
---|---|---|---|
1 | function name = matchPropertyName(name,propertyNames,exact) | ||
2 | %MATCHPROPERTYNAME Validate a table property name. | ||
3 | |||
4 | % Copyright 2012-2018 The MathWorks, Inc. | ||
5 | |||
0.001 | 8 | 6 | if ~matlab.internal.datatypes.isScalarText(name) |
7 | error(message('MATLAB:table:InvalidPropertyName')); | ||
< 0.001 | 8 | 8 | end |
9 | |||
< 0.001 | 8 | 10 | if nargin < 2 || ~exact |
11 | j = find(strncmpi(name,propertyNames,length(name))); | ||
< 0.001 | 8 | 12 | else |
< 0.001 | 8 | 13 | j = find(strcmp(name,propertyNames)); |
< 0.001 | 8 | 14 | end |
< 0.001 | 8 | 15 | if isempty(j) |
16 | error(message('MATLAB:table:UnknownProperty', name)); | ||
< 0.001 | 8 | 17 | elseif ~isscalar(j) |
18 | error(message('MATLAB:table:AmbiguousProperty', name)); | ||
< 0.001 | 8 | 19 | end |
20 | |||
< 0.001 | 8 | 21 | name = propertyNames{j}; |
Other subfunctions in this file are not included in this listing.