multiple excel file with different but know sequence names reading in one folder

4 ビュー (過去 30 日間)
Ferej
Ferej 2015 年 3 月 18 日
回答済み: Image Analyst 2015 年 3 月 19 日
I need to read multiple excel files with different names but know sequence. the name contain both number and letters. the letters do not change but the number do. For example H100h0Q2_1,H100h0Q2_2,H150h0Q2_1,H100h0Q2.5_1 are few. in addition, in each excel file I have three sheets which their name could vary. How can read each file and form a big matrix of the data I have. thank you.

回答 (1 件)

Image Analyst
Image Analyst 2015 年 3 月 19 日
Chances are you can use either dir() or sprintf().
To get the sheet names, use xlsinfo():
[status,sheets] = xlsfinfo(filename) % Returns the name of each spreadsheet in the file.

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by