Cody

Solution 1973684

Submitted on 13 Oct 2019
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   Fail
n = 3; y_correct = -360; assert(abs(ProdEigMag(n)-y_correct)<10^(-4))

y = 15.0000 4.8990 -4.8990

Error using assert The condition input argument must be a scalar logical. Error in Test1 (line 3) assert(abs(ProdEigMag(n)-y_correct)<10^(-4))

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

y = 111.0000 27.0000 -27.0000 9.7980 -0.0000 -9.7980

Error using assert The condition input argument must be a scalar logical. Error in Test2 (line 3) assert(abs(ProdEigMag(n)-y_correct)<10^(-4))