Write a function to draw dominos. The number on each side can range from 0 to 9. For example, for an input of [3,7], your function should return the following character array:

 '     o | o o o '
 '   o   |   o   '
 ' o     | o o o '

Each answer will be composed entirely of three characters: " " (space), o, and |. See the test suite for additional examples.

Solution Stats

47 Solutions

25 Solvers

Last Solution submitted on Oct 19, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers25

Suggested Problems

More from this Author139

Community Treasure Hunt

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

Start Hunting!