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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by