Can readtable read variable opt in a loop?

2 次查看(过去 30 天)
I have a lot of xlsm files to process.
Essentially I have a loop that searched for sheet name and column name that satisfies certain criteria and retrieve and store the sheet name and column, for example in a particular loop, perhaps,
SheetName = “1”; Col = “BH”;
Can I set these variable as options to readtable?

采纳的回答

Walter Roberson
Walter Roberson 2020-3-31
Yes.
'sheet' and 'range' are both valid for "spreadsheet" (.xls, .xlsx) files

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by