matlab - How to check if a string is in and cellarray? -
i have cellarray list of strings:
my_cell_array = {'stringa', 'stringb', 'stringc'}
is there efficient one-liner check if literal string included in cellarray?
something python:
if 'stringc' in my_cell_array
just found answer myself:
ismember('stringc', my_cell_array)
Comments
Post a Comment