Cody

# Problem 45369. Sky full of stars - 02

Solution 2923612

Submitted on 7 Sep 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
a= ['*********' ' ******* ' ' ***** ' ' *** ' ' * ']; assert(isequal(star_pattern_2(5,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test1 (line 6) assert(isequal(star_pattern_2(5,'t'),a))

2   Fail
a= [' * ' ' *** ' ' ***** ' ' ******* ' ' ********* ' ' *********** ' ' ************* ' ' *************** ' ' ***************** ' '*******************']; assert(isequal(star_pattern_2(10,'b'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test2 (line 11) assert(isequal(star_pattern_2(10,'b'),a))

3   Fail
a= ['*************************' ' *********************** ' ' ********************* ' ' ******************* ' ' ***************** ' ' *************** ' ' ************* ' ' *********** ' ' ********* ' ' ******* ' ' ***** ' ' *** ' ' * ']; assert(isequal(star_pattern_2(13,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test3 (line 14) assert(isequal(star_pattern_2(13,'t'),a))

4   Fail
a= ['*']; assert(isequal(star_pattern_2(1,'t'),a))

Output argument "y" (and maybe others) not assigned during call to "star_pattern_2". Error in Test4 (line 2) assert(isequal(star_pattern_2(1,'t'),a))

### Community Treasure Hunt

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

Start Hunting!