value = getvaropts(opts, selection)
| Parameter | Description |
|---|---|
| opts | an import options object (delimited text or spreadsheet). |
| selection | variable names (character vector, string array or cell of character vectors) or numeric indices. |
| Parameter | Description |
|---|---|
| value | a structure array with the per-variable options of the selected variables. |
getvaropts returns the per-variable import options of the selected variables of an import options object.
opts = delimitedTextImportOptions('NumVariables', 2);
opts.VariableNames = ["date", "value"];
opts.VariableTypes = ["datetime", "double"];
opts = setvaropts(opts, "date", 'InputFormat', 'MM/dd/yy');
getvaropts(opts, "date")
| Version | Description |
|---|---|
| 2.0.0 | initial version |