need to convert a cell into a vector number

2 次查看(过去 30 天)
Hello everyone,
I need to convert a 1*1 cell into a vector array, below an example:
from this :
to this:
Which is the easiest way to do it?
Thank you so much in advcance! :)
  3 个评论
Stephen23
Stephen23 2022-4-29
编辑:Stephen23 2022-4-29
STR2DOUBLE interprets commas as a thousands grouping character, as is commonly used in English. Thus it will convert that text into one integer.

请先登录,再进行评论。

采纳的回答

Stephen23
Stephen23 2022-4-29
C = {'80,47,109,44,104,40'} % why is this in a scalar cell array?
C = 1×1 cell array
{'80,47,109,44,104,40'}
V = sscanf(C{:},'%f,',[1,Inf])
V = 1×6
80 47 109 44 104 40

更多回答(0 个)

类别

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