Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to remove array items that include a certain substring?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!