assume you have the cell array{1,1} with a text called "XXXX-adsaads". I want the the portion -adsaads to be removed so that I only get XXXX. How can I do this?
Is the "adsaads" known ahead of time? Or are you wanting to find the part before the first - ? or are you wanting to find the part before the last - in cases where there are multiple - ?
the only thing that is known is that a four or three lettered wording comes before the "-" and after the "-" more words are coming. i want to FILTER out everything that comes after the "-".
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Walter Roberson (view profile)
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/473837-filter-a-cell-array-with-words#comment_729226
AA (view profile)
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/473837-filter-a-cell-array-with-words#comment_729228
Sign in to comment.