time | Calls | line |
---|
| | 15 | function [func,args] = getFileTypeFirst(func,args)
|
< 0.001 | 2 | 16 | namesIdx = 2:2:(numel(args)-1);
|
< 0.001 | 2 | 17 | [args{namesIdx}] = convertStringsToChars(args{namesIdx});
|
0.005 | 2 | 18 | results = func.Parser.canonicalizeNames(args(namesIdx));
|
< 0.001 | 2 | 19 | matches = find(results.CanonicalNames == "FileType");
|
< 0.001 | 2 | 20 | args(namesIdx) = cellstr(results.CanonicalNames);
|
< 0.001 | 2 | 21 | if ~isempty(matches)
|
| | 22 | % Use the last setting for file type
|
| | 23 | func.FileType = args{2*matches(end)+1};
|
| | 24 | args([2*matches(1:end-1); 2*matches(1:end-1)+1]) = [];
|
< 0.001 | 2 | 25 | end
|
< 0.001 | 2 | 26 | end
|
Other subfunctions in this file are not included in this listing.