Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to remove array items that include a certain substring?

조회 수: 1 (최근 30일)
Joseph Miscimarra
Joseph Miscimarra 2020년 7월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
I have an array list of filenames that I want to process—let's say some of them start with the letter "a", some start with "b", and some start with "c'". I only want to filter out all of the array items that start with "a" and "b" so the array only includes the "c" filenames.
How could I do this?
%creating sample array
filetable = {'a1','a2','b1','b2','c1','c2'};

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by