Matlab filters the rows where the first column is the specified string

1 view (last 30 days)
How to find a specified row of a cell, the strings in the first column of this row are all "E1", I need to filter these cells, how to do it?

Answers (1)

madhan ravi
madhan ravi on 10 Sep 2020
ix = ismember(Cells(:, 1), 'E1');
Cells(ix, :)
Cells(~ix, :) % choose which one you want

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!