NetLogo 7.0.0-beta2:

matrix:make-identity

matrix:make-identity size

Reports a new square matrix object (with dimensions n-size x n-size), consisting of the identity matrix (1s along the main diagonal, 0s elsewhere).

Take me to the full Matrix Extension Dictionary