Matlab filters the rows where the first column is the specified string
Show older comments
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?
1 Comment
KSSV
on 10 Sep 2020
Read about strcmp, strfind.
Answers (1)
madhan ravi
on 10 Sep 2020
ix = ismember(Cells(:, 1), 'E1');
Cells(ix, :)
Cells(~ix, :) % choose which one you want
Categories
Find more on Cell Arrays 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!