Problem 50887. Draw a '8' in a zero matrix!
Solution Stats
Problem Comments
-
3 Comments
Please like it if it wasinteresting!
There is a very interesting solution that is create 7 segements on your array like a "7-segment Display"
https://www.electronics-tutorials.ws/blog/7-segment-display-tutorial.html
This way may seem more complicated but once you has the data of segements' coordinate on your matrix you can automate other solution in this group easily.
So i can call it is a master solution
Created the two blocks of zeros in a matrix of 8 ;-)
Solution Comments
Show commentsProblem Recent Solvers662
Suggested Problems
-
Project Euler: Problem 5, Smallest multiple
1647 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
2033 Solvers
-
Return fibonacci sequence do not use loop and condition
850 Solvers
-
2712 Solvers
-
892 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!