Cody

Solution 2186798

Submitted on 1 Apr 2020 by William
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
y=[ '* *' '* *' '*****' '* *' '* *' '*****' '* *' '* *']; assert(isequal(ladder_mat(2,5),y))

2   Pass
y=[ '* *' '* *' '***************' '* *' '* *']; assert(isequal(ladder_mat(1,15),y))

3   Pass
y=[ '* *' '* *' '****' '* *' '* *' '****' '* *' '* *' '****' '* *' '* *' '****' '* *' '* *' '****' '* *' '* *' ]; assert(isequal(ladder_mat(5,4),y))

4   Pass
y=[ '* *' '* *' '******' '* *' '* *' '******' '* *' '* *' '******' '* *' '* *' '******' '* *' '* *' '******' '* *' '* *' '******' '* *' '* *']; assert(isequal(ladder_mat(6,6),y))

5   Pass
y=[ '* *' '* *' '***' '* *' '* *' '***' '* *' '* *' '***' '* *' '* *'] assert(isequal(ladder_mat(3,3),y))

y = 11×3 char array '* *' '* *' '***' '* *' '* *' '***' '* *' '* *' '***' '* *' '* *'