Borrar filtros
Borrar filtros

str2num conversion for vectors

1 visualización (últimos 30 días)
Diana Acreala
Diana Acreala el 11 de Abr. de 2012
Hello! About str2num conversion..
This is what I found in the Matlab help: A = str2num('uint16(500)') A = 500
class(A)
ans =
uint16
I want to do this for a vector like: A = str2num('uint16(500 300 100)') The result will be: A= [];
How can I solve this problem?
Thanks!

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 11 de Abr. de 2012
A = str2num('uint16([500 300 100])')

Más respuestas (0)

Categorías

Más información sobre MATLAB 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