readSpreadsheet>readRowNames (Calls: 1, Time: 0.003 s)
Generated 04-Jun-2021 04:11:19 using performance time.
subfunction in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\io\spreadsheet\+matlab\+io\+spreadsheet\+internal\readSpreadsheet.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
readSpreadsheet | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
256 | names = matlab.io.spreadsheet.... | 1 | 0.002 s | 68.3% | |
255 | vopts = matlab.io.TextVariable... | 1 | 0.000 s | 12.0% | |
246 | [range,type] = sheet.getRange(... | 1 | 0.000 s | 5.7% | |
250 | range([1 3]) = dataRange([1 3]... | 1 | 0.000 s | 4.0% | |
249 | elseif strcmp(type,'column-onl... | 1 | 0.000 s | 1.9% | |
All other lines | 0.000 s | 8.1% | |||
Totals | 0.003 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
readSpreadsheetVariable | function | 1 | 0.002 s | 50.0% | |
...portOptions.TextVariableImportOptions | class method | 1 | 0.000 s | 6.9% | |
VarOptsInputs>VarOptsInputs.get.Type | class method | 1 | 0.000 s | 0.7% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 42.3% | |||
Totals | 0.003 s | 100% |
Total lines in function | 17 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 14 |
Code lines that did run | 11 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 78.57 % |
time | Calls | line | |
---|---|---|---|
241 | function names = readRowNames(sheet,loc,dataRange) | ||
< 0.001 | 1 | 242 | if isnumeric(loc) && isscalar(loc) |
243 | % Column Number, get the used range, and select the column | ||
244 | range([1 3 2 4]) = [dataRange([1 3]) loc 1]; | ||
1 | 245 | else | |
< 0.001 | 1 | 246 | [range,type] = sheet.getRange(loc,false); |
< 0.001 | 1 | 247 | if strcmp(type,'single-cell') |
248 | range(3) = dataRange(3); | ||
< 0.001 | 1 | 249 | elseif strcmp(type,'column-only') |
< 0.001 | 1 | 250 | range([1 3]) = dataRange([1 3]); |
251 | else | ||
252 | % will error if it's not correct. | ||
< 0.001 | 1 | 253 | end |
< 0.001 | 1 | 254 | end |
< 0.001 | 1 | 255 | vopts = matlab.io.TextVariableImportOptions(); |
0.002 | 1 | 256 | names = matlab.io.spreadsheet.internal.readSpreadsheetVariable(vopts.Type,vopts,sheet,range,sheet.types(range)); |
< 0.001 | 1 | 257 | end |
Other subfunctions in this file are not included in this listing.