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

1 vue (au cours des 30 derniers jours)
Maria Imdad
Maria Imdad le 9 Déc 2020
Commenté : Mathieu NOE le 9 Déc 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 commentaire
Mathieu NOE
Mathieu NOE le 9 Déc 2020
hello
you can use str2num to convert char to numerical array and then you can do all the maths you want

Connectez-vous pour commenter.

Réponses (1)

Stephan
Stephan le 9 Déc 2020
Modifié(e) : Stephan le 9 Déc 2020
str2double or str2num should work for this.

Catégories

En savoir plus sur Numeric Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by