Skip to main content
5 of 5
edited tags; edited tags

Picking first row of a matrix with a positive first element

I have a table of order $30 \times 3$. I want to pick a row from this table which is first to have its first element to be positive, irrespective of the values of the rest two elements.

For example, if

T = {{-2, 1, 2}, {-4, 2, 5}, {-6, 4, 3}, {-2, 2, 1}, {2, 4, 4}, {1, 5, 3}}

How can I tell Mathematica to pick the row {2, 4, 4} from the T.

user49535
  • 1.2k
  • 6
  • 11