converting string to double

4 visualizaciones (últimos 30 días)
Spencer Mickus
Spencer Mickus el 14 de Sept. de 2016
Respondida: Andrei Bobrov el 14 de Sept. de 2016
I have the string that contains '1234', and I want to convert it to the double vector[1,2,3,4]. I have tried a lot of different things, but nothing seems to work and was just wondering if there was a way to do this without using loops. Thanks

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 14 de Sept. de 2016
'1234' - '0'

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by