Problem 45417. Fault in our Stars - 02
Create a window pattern with h-horizontal bars and v-vertical bars.
For example, for h=4,v=4
'**********' '* * * *' '* * * *' '**********' '* * * *' '* * * *' '**********' '* * * *' '* * * *' '**********'
The bars should be proportionally placed. Also, the size would increase proportionally to the no of bars.
Check the test suites for clarity.
n.b. for this problem >> no of horizontal & vertical bars are kept equal.
Prev prob https://www.mathworks.com/matlabcentral/cody/problems/45400-fault-in-our-stars-01
Solution Stats
Problem Comments
-
1 Comment
The example from the problem description contradicts the test suite.
Solution Comments
Show commentsProblem Recent Solvers12
Suggested Problems
-
Return a list sorted by number of occurrences
2776 Solvers
-
The Goldbach Conjecture, Part 2
2333 Solvers
-
Find the peak 3n+1 sequence value
2498 Solvers
-
76 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
605 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!