find function with cells

4 views (last 30 days)
sermet
sermet on 12 May 2014
Answered: dpb on 12 May 2014
A=[ 'a','b','c','d','e'];
A=A(:);
%for example I need to find which row equals 'd' in A matrix, how can I use find function in this example?

Accepted Answer

dpb
dpb on 12 May 2014
find(A=='d')

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!