Count rows in a table that contain specific letters

3 次查看(过去 30 天)
Dear MATLAB experts,
I am trying to count how many rows contain the following letters "DEAD - DELIST" in the second column of the table attached to this post. These are not the only letters that show up in each row. Is there any way to do this?
Thank you in advance.

采纳的回答

David Hill
David Hill 2021-10-28
nnz(contains(companyNamesJoiner.company,'DEAD - DELIST'));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by