Info

This question is closed. Reopen it to edit or answer.

Element from cell array extraction

1 view (last 30 days)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan on 23 Jan 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
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

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!