Cody

Solution 510905

Submitted on 9 Oct 2014 by Georges
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% n = 3; y_correct = [6 5 4]; assert(isequal(other_diag(n),y_correct))

2   Pass
%% n = 4 y_correct = [13 10 7 4]; assert(isequal(other_diag(n),y_correct))

n = 4

3   Pass
%% n = 7; y_correct = [28 27 26 25 24 23 22]; assert(isequal(other_diag(n),y_correct))

More from this Author2