How do I filter text in a table?

5 ビュー (過去 30 日間)
Or Shem Tov
Or Shem Tov 2020 年 3 月 3 日
編集済み: dpb 2020 年 3 月 3 日
Hi,
I have a table stored in a variable "L", in this table there is variable that is filled with text rows - ArticleTitle.
How can I filter the table by ArticleTitle so that it shows only articles that begin with "Analyst Ratings" AND contains PT in them?
Thank you for your help.

回答 (1 件)

dpb
dpb 2020 年 3 月 3 日
編集済み: dpb 2020 年 3 月 3 日
Don't attach images; use text from command line instead, or attach a small set of the data itself.
As for the Q?
ix=startsWith(L.ArticleTitle,"Analyst Ratings") & contains(L.ArticleTitle,"PT");
L1=L(ix,:);

カテゴリ

Help Center および File ExchangeText Analytics Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by