Cody

Solution 1735947

Submitted on 25 Feb 2019 by Jesús Zambrano
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 = 1; offset = 2 y_correct = 3; assert(isequal(constant_offset(a,offset),y_correct))

offset = 2

2   Pass
a = [-1 1]; offset = 2 y_correct = [1 3]; assert(isequal(constant_offset(a,offset),y_correct))

offset = 2

3   Pass
a = [-10:1:1]; offset = 10 y_correct = [0:11]; assert(isequal(constant_offset(a,offset),y_correct))

offset = 10

Suggested Problems

More from this Author9