char to vector conversion. using matrix of chars (16x128)

1 visualización (últimos 30 días)
Maria Imdad
Maria Imdad el 9 de Dic. de 2020
Comentada: Mathieu NOE el 9 de Dic. de 2020
Hi everyone, i have a matrix of (16x128). where my loop is traversing through each column one by one. Value from my first column are
128
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
I have to convert this column (of chars) into a vector.
  1 comentario
Mathieu NOE
Mathieu NOE el 9 de Dic. de 2020
hello
you can use str2num to convert char to numerical array and then you can do all the maths you want

Iniciar sesión para comentar.

Respuestas (1)

Stephan
Stephan el 9 de Dic. de 2020
Editada: Stephan el 9 de Dic. de 2020
str2double or str2num should work for this.

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by