time | Calls | line |
---|
| | 1 | function [var,errid,placeholder] = readSpreadsheetVariable(type,varopts,sheet,subrange,typeIDs)
|
| | 2 | %read a variable based on its type
|
< 0.001 | 11 | 3 | switch type
|
< 0.001 | 11 | 4 | case {'double','single','int8','uint8','int16','uint16','int32','uint32','int64','uint64'}
|
| | 5 | %obj = matlab.io.NumericVariableImportOptions('Type',newType);
|
0.003 | 3 | 6 | [var,errid,placeholder] = readNumericSpreadsheetVariable(varopts,sheet,subrange,typeIDs);
|
< 0.001 | 8 | 7 | case {'char','string'}
|
| | 8 | %obj = matlab.io.TextVariableImportOptions('Type',newType);
|
0.015 | 8 | 9 | [var,errid,placeholder] = readTextSpreadsheetVariable(varopts,sheet,subrange,typeIDs);
|
| | 10 | case 'datetime'
|
| | 11 | %obj = matlab.io.DatetimeVariableImportOptions();
|
| | 12 | [var,errid,placeholder] = readDatetimeSpreadsheetVariable(varopts,sheet,subrange,typeIDs);
|
| | 13 | case 'duration'
|
| | 14 | %obj = matlab.io.DurationVariableImportOptions();
|
| | 15 | [var,errid,placeholder] = readDurationSpreadsheetVariable(varopts,sheet,subrange,typeIDs);
|
| | 16 | case 'categorical'
|
| | 17 | %obj = matlab.io.CategoricalVariableImportOptions();
|
| | 18 | [var,errid,placeholder] = readCategoricalSpreadsheetVariable(varopts,sheet,subrange,typeIDs);
|
| | 19 | case 'logical'
|
| | 20 | %obj = matlab.io.LogicalVariableImportOptions();
|
| | 21 | [var,errid,placeholder] = readLogicalSpreadsheetVariable(varopts,sheet,subrange,typeIDs);
|
| | 22 | otherwise
|
| | 23 | assert(false);
|
< 0.001 | 11 | 24 | end
|
< 0.001 | 11 | 25 | end
|
Other subfunctions in this file are not included in this listing.