Consider the following (4 x 5) 2D matrix:
0 0 0 0 0
0 1 1 0 0
0 0 1 1 0
0 0 0 0 0
I need to write in a mathematical language "The last column at row 3 that equals one", in this example said column is 4 (as you might imagine, the expression should work for any 2D matrix).
Is there any mathematical way to write such an expression?
Context: I'm in the unfortunate position of trying to impress a professor that forces us to write everything mathematically for his own reasons.
Given an $m\times n$ matrix $A$ and a row number $1\le i\le m$ one could define an integer
$$ L_i=\max\{j\,\vert\,a_{ij}=1\}$$
which would represent the column number of the last entry on row $i$ which is equal to $1$.
Addendum: If no entry on row $i$ equals $1$ one could define $L_i=0$ for that row.