char to vector conversion. using matrix of chars (16x128)
1 次查看(过去 30 天)
显示 更早的评论
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
2020-12-9
hello
you can use str2num to convert char to numerical array and then you can do all the maths you want
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numeric Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!