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

1 回表示 (過去 30 日間)
Maria Imdad
Maria Imdad 2020 年 12 月 9 日
コメント済み: Mathieu NOE 2020 年 12 月 9 日
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 件のコメント
Mathieu NOE
Mathieu NOE 2020 年 12 月 9 日
hello
you can use str2num to convert char to numerical array and then you can do all the maths you want

サインインしてコメントする。

回答 (1 件)

Stephan
Stephan 2020 年 12 月 9 日
編集済み: Stephan 2020 年 12 月 9 日
str2double or str2num should work for this.

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by