Cody

Solution 1997873

Submitted on 31 Oct 2019 by Asif Newaz
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 = 3; y_correct = [6 5 4]; assert(isequal(other_diag(x),y_correct))

y = 6 y = 6 5 y = 6 5 4

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

x = 4 y = 13 y = 13 10 y = 13 10 7 y = 13 10 7 4

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

y = 28 y = 28 27 y = 28 27 26 y = 28 27 26 25 y = 28 27 26 25 24 y = 28 27 26 25 24 23 y = 28 27 26 25 24 23 22

Suggested Problems

More from this Author2