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

1 Ansicht (letzte 30 Tage)
Maria Imdad
Maria Imdad am 9 Dez. 2020
Kommentiert: Mathieu NOE am 9 Dez. 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 Kommentar
Mathieu NOE
Mathieu NOE am 9 Dez. 2020
hello
you can use str2num to convert char to numerical array and then you can do all the maths you want

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Stephan
Stephan am 9 Dez. 2020
Bearbeitet: Stephan am 9 Dez. 2020
str2double or str2num should work for this.

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by