Cody

Solution 1698057

Submitted on 21 Dec 2018
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
n = 3; m = make_diamond(n); assert(strcmp(char(0), m(2,2))) assert(all(find(double(make_diamond(3)) == 0) == [1 3 5 7 9]') == 1)

Undefined function 'filp' for input arguments of type 'double'. Error in make_diamond (line 5) e=filp(d); Error in Test1 (line 2) m = make_diamond(n);

2   Fail
n = 9; m = make_diamond(n); assert(strcmp(char(0), m(5,5)))

Undefined function 'filp' for input arguments of type 'double'. Error in make_diamond (line 5) e=filp(d); Error in Test2 (line 2) m = make_diamond(n);

3   Fail
n = 35; m = make_diamond(n); assert(strcmp(char(0), m(15,15)))

Undefined function 'filp' for input arguments of type 'double'. Error in make_diamond (line 5) e=filp(d); Error in Test3 (line 2) m = make_diamond(n);

Suggested Problems

More from this Author1