Cody

Problem 2507. Delete 2nd and 5th column of Given 6*6 matrix

Solution 1798819

Submitted on 28 Apr 2019 by nag
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
x=magic(6); y_correct = [ 35 6 26 24 3 7 21 25 31 2 22 20 8 33 17 15 30 34 12 16 4 29 13 11 ] assert(isequal(col_del(x),y_correct))

y_correct = 35 6 26 24 3 7 21 25 31 2 22 20 8 33 17 15 30 34 12 16 4 29 13 11

Suggested Problems

More from this Author70

Community Treasure Hunt

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

Start Hunting!