Using the "find" command with arrays of cells

1 Ansicht (letzte 30 Tage)
Paul Fishback
Paul Fishback am 22 Jul. 2015
Kommentiert: Paul Fishback am 22 Jul. 2015
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.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 22 Jul. 2015
find(ismember(chanels,'B3'))

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by