Query on spreadsheetimport options

1 次查看(过去 30 天)
In Spreadsheetimportoptions (in script not gui). How to assign opts.variablenames from excel row in script.

回答(1 个)

Sai Sri Pathuri
Sai Sri Pathuri 2019-11-6
You may use readcell function to read the excel sheet in the form of a cell array and assign the desired value from cell array to opts.VariableNames variable by proper indexing.
Refer the following link for readcell function documentation

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by