Count rows in a table that contain specific letters

4 vues (au cours des 30 derniers jours)
chiefjia
chiefjia le 28 Oct 2021
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.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by