Finding the row and column in a cell array!

Hey everybody,
a={'Mk1326=Scanner,Scan'; 'Mk1327=Scanner,Scan';'Mk1328=Scan';'0,26685,1,0';'Mk1329=SyncStatus,Sync';'Mk1330=Scanner,Scan'};
How can I extract the row and column that only contains 'Scanner' in it?
Thanks in advance, Mehdi

 採用された回答

Andrei Bobrov
Andrei Bobrov 2011 年 11 月 11 日

0 投票

a={'Mk1326=Scanner,Scan'; 'Mk1327=Scanner,Scan';'Mk1328=Scan';'0,26685,1,0';'Mk1329=SyncStatus,Sync';}
out = a(~cellfun('isempty',regexp(a,'Scanner')))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Types についてさらに検索

質問済み:

M G
2011 年 11 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by