selecting different criteria for logicals

1 view (last 30 days)
Cside
Cside on 28 Aug 2019
Commented: Cside on 30 Aug 2019
I have a 100 x 2 matrix and would need to filter those rows that has 2 in the first column, and 3 in the second column into a logical.
How should I go about this? Thank you! :)

Accepted Answer

Rik
Rik on 28 Aug 2019
L=data(:,1)==2 & data(:,2)==3;
  6 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Tables 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!

Translated by