Skip to main content
19-Tanzanite
April 18, 2024
Solved

How to find the index and the corresponding value in a matrix?

  • April 18, 2024
  • 1 reply
  • 832 views

Hello,

Lets say that I have this matrix:

Cornel_0-1713452538758.png
I want to find the index at which the maximum value in the second column is obtained, and the corresponding value at that index in the first column.
Like below:

Cornel_4-1713452896451.png

Mathcad Prime 9 file.

Best answer by Werner_E

You may want to familiarize yourself with the "match" and "lookup" commands in the help section.

 

Werner_E_0-1713456893762.png

or alternative with the use of variables

Werner_E_0-1713458141220.png

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
April 18, 2024

You may want to familiarize yourself with the "match" and "lookup" commands in the help section.

 

Werner_E_0-1713456893762.png

or alternative with the use of variables

Werner_E_0-1713458141220.png