How do I use elements in a vector to create a number
Mostrar comentarios más antiguos
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 comentarios
David Hill
el 28 de Sept. de 2020
Please provide and example.
x=[1 2 3 4 9 7];
y=num2str(x(2:5));
y=str2double(y(y~=' '));%2349
Cesar Valencia
el 28 de Sept. de 2020
Cesar Valencia
el 28 de Sept. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!