Comma separated value to vector

I have a table where the element in the first row of the second column is "11,333,4445,2,78,2399". I would like to take this element, remove the commas, and turn it into a vector v=[11 333 4445 2 78 2399].

 采纳的回答

>> S = '11,333,4445,2,78,2399';
>> V = sscanf(S,'%f,',[1,Inf])
V =
11 333 4445 2 78 2399

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Vehicle Dynamics Blockset 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by