Cody

# Problem 45400. Fault in our Stars - 01

Solution 2960398

Submitted on 17 Sep 2020 by Alfonso Nieto-Castanon
• Size: 36
• This is the leading solution.
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 '* *' '* *' '***' '* *' '* *' '***' '* *' '* *' '***' '* *' '* *'

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!