Return Row of Array corresponding to a certain element?

1 view (last 30 days)
How can I call a certain row from an array "A" that contains a certain element (say "a")?

Accepted Answer

the cyclist
the cyclist on 17 Dec 2016
A(any(A==a,2),:)

More Answers (0)

Categories

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