Cody

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

Solution 1044084

Submitted on 4 Nov 2016 by Ahmad Alzahrani
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!