Cody

Solution 1636962

Submitted on 2 Oct 2018 by Suraj Gurav
  • Size: 12
  • This is the leading solution.
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
aMat = ones(9,9)*2; bMat = diag([1:5 4:-1:1]); cMat = reshape(1:100,10,10); zRef = det(cMat)*(aMat*bMat)' zMat = MyFunc(); assert(isequal(zRef,zMat))

zRef = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = []

2   Pass
Ref = ones(9,9)*2; [zMat Mat] = MyFunc(); assert(isequal(Ref,Mat))

ans = []

3   Pass
Ref = diag([1:5 4:-1:1]); [zMat a Mat] = MyFunc(); assert(isequal(Ref,Mat))

ans = []

4   Pass
Ref = reshape(1:100,10,10); [zMat a b Mat] = MyFunc(); assert(isequal(Ref,Mat))

ans = []

Suggested Problems

More from this Author26