Problem 169. Set a Soroban Abacus
Description
This problem is the inverse of Problem 136: Read a Soroban Abacus. Provided an N-digit integer, return a logical matrix of size 7xN that symbolizes the input number.
Example
x = 10586; y = [ 1 1 0 0 0 0 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 ];
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers36
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15467 Solvers
-
Which values occur exactly three times?
5060 Solvers
-
Number of 1s in the Binary Representation of a Number
442 Solvers
-
Project Euler: Problem 9, Pythagorean numbers
1130 Solvers
-
701 Solvers
More from this Author55
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!