How to test cell array membership

This seems like a simple question, but how do I test for a string's membership in a cell array? Is there a function that returns 1 if string exists in cell array and 0 if not?
Thanks.

 Accepted Answer

per isakson
per isakson on 31 Jul 2014
Edited: Image Analyst on 31 Jul 2014
Search ismember

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Asked:

on 31 Jul 2014

Edited:

on 31 Jul 2014

Community Treasure Hunt

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

Start Hunting!