フィルターのクリア

Using the "find" command with arrays of cells

1 回表示 (過去 30 日間)
Paul Fishback
Paul Fishback 2015 年 7 月 22 日
コメント済み: Paul Fishback 2015 年 7 月 22 日
I have 91-by-1 cell array, named "Channels," in my workspace whose entries correspond to EEG channels. For example,
Channels{7}=B3
whereas, using parentheses as opposed to braces,
Channels(7)= 'B3'
I know how to use the "find" command when working with vectors and matrices, but I'm having trouble using it in such situations. For example, I would like to find the index that corresponds to say B3, something along the lines of
find(Channels==B3)
I think my problem stems from a lack of understanding of data types.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 7 月 22 日
find(ismember(chanels,'B3'))
  1 件のコメント
Paul Fishback
Paul Fishback 2015 年 7 月 22 日
Perfect! Thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by