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

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)

ix = ismember(Cells(:, 1), 'E1');
Cells(ix, :)
Cells(~ix, :) % choose which one you want

Categories

Asked:

on 10 Sep 2020

Commented:

on 10 Sep 2020

Community Treasure Hunt

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

Start Hunting!