Skip to main content
4-Participant
Aug 9, 2023 7:35 AM UTC
Solved

Element position of matrix

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!

terryhendicott
21-Topaz II
Aug 9, 2023 7:47 AM UTC

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

terryhendicott
21-Topaz II
Aug 9, 2023 7:47 AM UTC

Hi,

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

Capture.JPG

Translate
Werner_E
25-Diamond I
Aug 9, 2023 10:42 AM UTC

Werner_E_0-1691577758283.png

 

Translate