Cody

# Problem 1814. 06 - Matrix Equations 2

Solution 1797939

Submitted on 26 Apr 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
aVec = [3.14 15 9 26]; bVec = [2.71;8;28;182]; ref = bVec*aVec; user = MyFunc(); assert(isequal(user,ref))

aVec = 3.1400 15.0000 9.0000 26.0000 bVec = 2.7100 8.0000 28.0000 182.0000 yMAt = 1.0e+03 * 0.0085 0.0406 0.0244 0.0705 0.0251 0.1200 0.0720 0.2080 0.0879 0.4200 0.2520 0.7280 0.5715 2.7300 1.6380 4.7320

Output argument "yMat" (and maybe others) not assigned during call to "MyFunc". Error in Test1 (line 4) user = MyFunc();

2   Fail
aRef = [3.14 15 9 26]; [xMat aVec] = MyFunc(); assert(isequal(aRef,aVec))

aVec = 3.1400 15.0000 9.0000 26.0000 bVec = 2.7100 8.0000 28.0000 182.0000 yMAt = 1.0e+03 * 0.0085 0.0406 0.0244 0.0705 0.0251 0.1200 0.0720 0.2080 0.0879 0.4200 0.2520 0.7280 0.5715 2.7300 1.6380 4.7320

Output argument "yMat" (and maybe others) not assigned during call to "MyFunc". Error in Test2 (line 2) [xMat aVec] = MyFunc();

3   Fail
bRef = [2.71;8;28;182]; [xMat aVec bVec] = MyFunc(); assert(isequal(bRef,bVec))

aVec = 3.1400 15.0000 9.0000 26.0000 bVec = 2.7100 8.0000 28.0000 182.0000 yMAt = 1.0e+03 * 0.0085 0.0406 0.0244 0.0705 0.0251 0.1200 0.0720 0.2080 0.0879 0.4200 0.2520 0.7280 0.5715 2.7300 1.6380 4.7320

Output argument "yMat" (and maybe others) not assigned during call to "MyFunc". Error in Test3 (line 2) [xMat aVec bVec] = MyFunc();