Count rows in a table that contain specific letters

조회 수: 3 (최근 30일)
chiefjia
chiefjia 2021년 10월 28일
답변: David Hill 2021년 10월 28일
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