time | Calls | line |
---|
| | 282 | function SingleRecordNumVars(propname,type,rangesize,nvars)
|
| | 283 | % Allowed:
|
| | 284 | % * A single open record range
|
| | 285 | % * The number of variables must match, or be open.
|
| | 286 | % * An exact range.
|
| | 287 |
|
< 0.001 | 2 | 288 | if strcmp(type,'column-only')
|
| | 289 | error(message('MATLAB:spreadsheet:importoptions:PropSupportOpenCol',propname));
|
< 0.001 | 2 | 290 | end
|
| | 291 | % must be a single row, or a named range.
|
< 0.001 | 2 | 292 | if ~any(rangesize(1) == [-1 1])
|
| | 293 | error(message('MATLAB:spreadsheet:importoptions:SingleRow',propname));
|
< 0.001 | 2 | 294 | end
|
| | 295 | % must match the number of variables, be a start cell, be open-ended (cell/row), or a named range.
|
| | 296 |
|
< 0.001 | 2 | 297 | if nvars < inf && ~any(rangesize(2) == [nvars 1 -1])
|
| | 298 | error(message('MATLAB:spreadsheet:importoptions:VarNumberMismatch',propname));
|
< 0.001 | 2 | 299 | end
|
| | 300 |
|
< 0.001 | 2 | 301 | end
|
Other subfunctions in this file are not included in this listing.