How do I use elements in a vector to create a number
Show older comments
If I have a vector with a certain size of elements how can I turn some of those elements into a combined number versus separate numbers in a vector?
3 Comments
David Hill
on 28 Sep 2020
Please provide and example.
x=[1 2 3 4 9 7];
y=num2str(x(2:5));
y=str2double(y(y~=' '));%2349
Cesar Valencia
on 28 Sep 2020
Cesar Valencia
on 28 Sep 2020
Accepted Answer
More Answers (0)
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!