# Arrow pointing on two rows of matrix

How to create an arrow which points on two adjacent rows of matrix (as in picture)?

• Do you have any work to show of what you've tried thus far?
– Werner
Apr 10, 2019 at 18:54

\documentclass{article}
$\begin{tikzpicture} \matrix[matrix of math nodes,left delimiter={[},right delimiter={]}] (mat) { \times & \times & \times & ~ & ~ & ~ \\ ~ & \times & \times & \times & ~ & ~ \\ ~ & ~ & \times & \times & \times & ~ \\ ~ & ~ & ~ & \times & \times & \times \\ ~ & ~ & ~ & ~ & \times & \times \\ ~ & ~ & ~ & ~ & ~ & \times \\ }; \foreach \X [evaluate=\X as \Y using {int(\X+1)}] in {1,...,5} {\draw[<->] ([xshift=-7em+\X*1em]mat.west|-mat-\X-1) -| ([xshift=-7.5em+\X*1em]mat.west|-mat-\Y-1) -- ++(0.5em,0);} \end{tikzpicture}$