MATLAB Answers

Extract the particular element from the cell array

2 views (last 30 days)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan on 22 Jan 2018
I have cell array a = {'abd', 'abd\cd\def.mdl', 'abc\efg'}
I want to remove the element ending with 'mdl' and also element without '\'.
Finally my answer should be,
a = {'abc\efg'}
How can i do this using regexp or any other method?
Thanks a lot

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.


Translated by