How can I implement wildcard at ismember function of matlab?
How can I do the implementation doing this in matlab; ismember(file_names,['*.mp4']) I would do that with regexp , like this: result = ~cellfun(@isempty,(regexp(file_names,'\.mp4$'))); For example, file_names = {'aaa.mp4','bbb.mp3'}; gives result = 1 0 Using regular expressions (regexp) This can be easily achieved with regexp : tf = ~cellfun('isempty', regexp(file_names, '.*\.mp4')); If you want to force the pattern matching to the beginning or the end of the filename, you should add a caret ( ^ ) or a dollar sign ( $ ) respectively, for instance: %// Match pattern at the beginning of the