Cody

Problem 43634. Find product of eigenvalues of n*n magic matrix.

Solution 2972638

Submitted on 20 Sep 2020 by Benjamin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
n = 3; y_correct = -360; assert(abs(ProdEigMag(n)-y_correct)<10^(-4))

2   Pass
n = 6; y_correct = -9.0175e-08; assert(abs(ProdEigMag(n)-y_correct)<10^(-4))

Suggested Problems

More from this Author37

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!