Cody

Problem 2590. Create an anti-identity matrix

Created by Pritesh Shah in Community

Create an anti-identity matrix of given dimension.

Examples

 n = 2 
 A = [0 1; 1 0]
 n = 3
 A = [0 0 1; 0 1 0; 1 0 0]

Solution Stats

64.89% Correct | 35.11% Incorrect
Last solution submitted on May 14, 2019