time | Calls | line |
---|
| | 7 | function filetype = getFileTypeFromExtension(ext)
|
< 0.001 | 2 | 8 | if any(strcmpi(ext,matlab.io.internal.FileExtensions.SpreadsheetExtensions))
|
< 0.001 | 2 | 9 | filetype = 'spreadsheet';
|
| | 10 | elseif any(strcmpi(ext,matlab.io.internal.FileExtensions.XMLExtensions))
|
| | 11 | error(message('MATLAB:textio:detectImportOptions:UnrecognizedExtension',ext));
|
| | 12 | elseif isempty(ext) || any(strcmpi(ext, matlab.io.internal.FileExtensions.TextExtensions))
|
| | 13 | filetype = 'text';
|
| | 14 | else
|
| | 15 | error(message('MATLAB:textio:detectImportOptions:UnrecognizedExtension',ext));
|
< 0.001 | 2 | 16 | end
|
< 0.001 | 2 | 17 | end
|
Other subfunctions in this file are not included in this listing.