xlsinfo, string comparison, sheet names

I would like to use the xlsinfo function as follows:
[status,sheets] = xlsfinfo(strcat(files.in.dir,files.in.name))
The actual tabs I may have in my file may be named as '1_4G_BW0.2' or '40_3G_BW5'.
How do I easily check if any of the tab names contain 'BW' as part of their name?
Is there any quick way to check if an Excel sheet contains a specific sheet?
Thanks!

 採用された回答

Walter Roberson
Walter Roberson 2016 年 3 月 28 日

1 投票

bw_idx = find( ~cellfun(@isempty, strfind(sheets, 'BW')) );

1 件のコメント

Jonas
Jonas 2016 年 3 月 28 日
thanks for the quick reply! :-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

質問済み:

2016 年 3 月 28 日

コメント済み:

2016 年 3 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by