time | Calls | line |
---|
| | 40 | function [func, supplied, additionalArgs] = validate(func,varargin)
|
| | 41 | % Need to set FileType before validating the file name so we
|
| | 42 | % will pick the correct set of extensions to match against.
|
0.008 | 2 | 43 | [func,varargin] = getFileTypeFirst(func,varargin);
|
| | 44 |
|
0.042 | 2 | 45 | [func, supplied, additionalArgs] = ...
|
| 2 | 46 | validate@matlab.io.internal.functions.ExecutableFunction(func,varargin{:});
|
| | 47 |
|
< 0.001 | 2 | 48 | if (supplied.Range || supplied.DataRange) && supplied.NumHeaderLines
|
| | 49 | error(message('MATLAB:spreadsheet:sheet:RangeAndHeaderLines'));
|
< 0.001 | 2 | 50 | end
|
| | 51 |
|
| | 52 | % without an extension, or an explicit FileType, error
|
< 0.001 | 2 | 53 | if ~supplied.FileType
|
0.017 | 2 | 54 | func.FileType = matlab.io.internal.DetectImportOptionsFileExtensions.getFileTypeFromExtension(func.Extension);
|
< 0.001 | 2 | 55 | end
|
< 0.001 | 2 | 56 | end
|
Other subfunctions in this file are not included in this listing.