Problem 2364. Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'.
Examples
x = [ 1 3 5 6 ] y = '1356'
x = [ 2 5 7 23] y = '25723'
Solution Stats
Problem Comments
-
1 Comment
Ned Gulley
on 17 Jun 2014
I added some extra tests.
Solution Comments
Show commentsProblem Recent Solvers204
Suggested Problems
-
Return the largest number that is adjacent to a zero
5454 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15696 Solvers
-
Back to basics 21 - Matrix replicating
1758 Solvers
-
construct matrix with identical rows
201 Solvers
-
331 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!