Find index of cell containing strings from cell array
1 view (last 30 days)
Show older comments
How can I find the indices of cell A that contain any of the strings in cell B?
Example: A = cell(100,10). In column 2, I have a variety of fruits: apples, bananas, pears, grapes, rasberries etc. Some repeat. B = {'Apples', 'bananas', 'grapes'}
I want to find all the rows of A(:,2) that contain any of the strings in B.
Thanks!
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Characters and Strings 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!