How do I use elements in a vector to create a number
显示 更早的评论
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 个评论
David Hill
2020-9-28
Please provide and example.
x=[1 2 3 4 9 7];
y=num2str(x(2:5));
y=str2double(y(y~=' '));%2349
Cesar Valencia
2020-9-28
Cesar Valencia
2020-9-28
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!