Info

此问题已关闭。 请重新打开它进行编辑或回答。

Element from cell array extraction

2 次查看(过去 30 天)
Gopalakrishnan venkatesan
关闭: MATLAB Answer Bot 2021-8-20
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 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by