Cody

Solution 2109264

Submitted on 28 Jan 2020
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   Fail
x = 1; y_correct = ones(100,100); assert(isequal(array_ones(x),y_correct))

Index in position 1 exceeds array bounds (must not exceed 1). Error in array_ones (line 2) y = x(100,100); Error in Test1 (line 3) assert(isequal(array_ones(x),y_correct))