3 of 4 Statement `:` was missing in the code descriptio

MATL, 2 bytes

Xy

A translation of my Octave answer.

Try it online.

A 4 byte version with no built-ins (thanks to Luis Mendo):

:t!=
:     take implicit input "n", and generate row array [1,2,...n]
 t    duplicate
  !   zip
   =  thread compare over the result