Extract the particular element from the cell array

조회 수: 1 (최근 30일)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2018년 1월 22일
편집: Gopalakrishnan venkatesan 2018년 1월 22일
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개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by