May I ask what is the definition of Nilpotent matrix. I suppose that is A^k =0 for some k? If I am right, then 0 must be an eigenvalue of A, then there is some issues for the test problems.
@Ling Liang , take some tolerance while checking the equality of eigen value with zero.
3155 Solvers
715 Solvers
Check to see if a Sudoku Puzzle is Solved
282 Solvers
Least common multiple of many numbers
189 Solvers
Find the sum of the elements in the "second" diagonal
997 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!