Skip to main content
4-Participant
August 9, 2023
Solved

Element position of matrix

  • August 9, 2023
  • 2 replies
  • 1249 views

Hello, how can I find position of known element in matrix if I know that element exists in matrix (column and row index). I tried with match function and I put small value for tolerance (as you can see in attached file test.mcdx) and I'm getting 2x1 for which I know that is not the right position. Also, it would be nice if you propose me the solution with separated index for column and for row.

Thanks in advance!

Best answer by terryhendicott

Hi,

The 2x1 matrix returned by match is the row and column index to the match.  By default index starts at zero.

Capture.JPG

2 replies

21-Topaz II
August 9, 2023

Hi,

The 2x1 matrix returned by match is the row and column index to the match.  By default index starts at zero.

Capture.JPG

25-Diamond I
August 9, 2023

Werner_E_0-1691577758283.png