Cody

Problem 42652. Test Problem; Create a 5x5 array containing all ones

Solution 2768830

Submitted on 2 Aug 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_correct = ones(5,5) assert(isequal(x_correct, testfunction))

x_correct = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Error using testfunction Too many output arguments. Error in Test1 (line 2) assert(isequal(x_correct, testfunction))

Suggested Problems