Cody

# Problem 1815. 06 - Matrix Equations 3

Solution 2207433

Submitted on 12 Apr 2020
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
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))

Error in solution: Line: 3 Column: 28 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 3 Column: 28 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 3 Column: 28 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 3 Column: 28 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.