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
Solution Comments
Show comments
Loading...
Problem Recent Solvers13
Suggested Problems
-
Back to basics 23 - Triangular matrix
1117 Solvers
-
How many trades represent all the profit?
615 Solvers
-
Duplicate each element of a vector.
635 Solvers
-
1611 Solvers
-
402 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The example from the problem description contradicts the test suite.