time | Calls | line |
---|
| | 30 | function val = get.Sheet(func)
|
0.002 | 8 | 31 | containsOpts = any(strcmp(fieldnames(func),"Options"));
|
< 0.001 | 8 | 32 | try
|
< 0.001 | 8 | 33 | if containsOpts && any(strcmp(fieldnames(func.Options),"Sheet")) ...
|
| 6 | 34 | && strcmp(func.Sheet,'')
|
| | 35 | % if the Options object is well-formed and Sheet has
|
| | 36 | % been initialized properly
|
< 0.001 | 6 | 37 | val = func.Options.Sheet;
|
| 2 | 38 | else
|
| | 39 | % if the Sheet was supplied via NV pairs
|
< 0.001 | 2 | 40 | val = func.Sheet;
|
< 0.001 | 8 | 41 | end
|
| | 42 | catch
|
| | 43 | % If the Options object is not well-formed
|
| | 44 | val = func.Sheet;
|
< 0.001 | 8 | 45 | end
|
< 0.001 | 8 | 46 | end
|
Other subfunctions in this file are not included in this listing.