Cody

# Problem 180. Omit columns averages from a matrix

Solution 424926

Submitted on 2 Apr 2014 by Swapnali Gujar
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
%% 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 Result = 4 10 -9 -3 -2 Result = 4 11 10 -8 -9 -7 -3 -1 -2 5 Result = 4 11 -12 10 -8 -6 -9 -7 0 -3 -1 6 -2 5 12 Result = 4 11 -12 -5 10 -8 -6 1 -9 -7 0 7 -3 -1 6 8 -2 5 12 -11 Result = 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

2   Pass
%% 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 Result = 3 -2 -1 Result = 3 -4 -2 0 -1 4 Result = 3 -4 1 -2 0 2 -1 4 -3

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!