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.
Return the first and last characters of a character array
3699 Solvers
How long is the longest prime diagonal?
342 Solvers
Given a matrix, return the last eigen value
177 Solvers
319 Solvers
1293 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!