Problem 642. Convert a vector into a number
This is a sub problem related to this problem:
http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition
If vector, v, has only whole numbers [0 1 2 ... 9], then it can be turned into a base ten number as follows:
[3 4 2 9] ---> 3429 [1 3 5] ---> 135
Make this conversion.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers609
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6544 Solvers
-
Sum all integers from 1 to 2^n
16874 Solvers
-
704 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
390 Solvers
-
5948 Solvers
More from this Author51
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!