It's a dirty way to handle this to put base 5 numbers into the form of a base 10 number. You really should be using a string representation for the number in another base, just as dec2base does.
never thought about dec2base can do "5" base.learn a new trick.
9978 Solvers
How to find the position of an element in a vector without using the find function
2482 Solvers
Longest run of consecutive numbers
1826 Solvers
Sum the elements in either diagonal of a square matrix
181 Solvers
Count decimal digits of a number
183 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!