Skip to content

strmatch_cell.m

Basic Information

  SYNTAX:  idx = strmatch_cell(str,cellarray)

  PURPOSE:  Replacement for  matlab strmatch function, which doesn't work
    correctly for cell arrays.

  INPUT:
    str = string
    cellarray = cell array (n x 1) of strings

  OUTPUT:
    idx = indices of matching entries in cellarray

Dependencies