Cody

# Problem 180. Omit columns averages from a matrix

Solution 2450147

Submitted on 1 Jun 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
A=magic(5); y_correct = [ 4 11 -12 -5 2; 10 -8 -6 1 3; -9 -7 0 7 9; -3 -1 6 8 -10; -2 5 12 -11 -4] assert(isequal(your_fcn_name(A),y_correct))

y_correct = 4 11 -12 -5 2 10 -8 -6 1 3 -9 -7 0 7 9 -3 -1 6 8 -10 -2 5 12 -11 -4 m = 5 n = 5 x = 13 13 13 13 13 A = 4 10 -9 -3 -2

Index in position 2 exceeds array bounds (must not exceed 1). Error in your_fcn_name (line 5) A= A(:,i)-x(i) Error in Test1 (line 8) assert(isequal(your_fcn_name(A),y_correct))

2   Fail
A=magic(3); y_correct = [ 3 -4 1; -2 0 2; -1 4 -3] assert(isequal(your_fcn_name(A),y_correct))

y_correct = 3 -4 1 -2 0 2 -1 4 -3 m = 3 n = 3 x = 5 5 5 A = 3 -2 -1

Index in position 2 exceeds array bounds (must not exceed 1). Error in your_fcn_name (line 5) A= A(:,i)-x(i) Error in Test2 (line 6) assert(isequal(your_fcn_name(A),y_correct))