get the numerical values from char
3 次查看(过去 30 天)
显示 更早的评论
Hello everyone, Is there a way to get the numerical column which starts with -0.00013494 into an array in matlab?
2 个评论
回答(1 个)
Walter Roberson
2022-9-21
data = cell2mat(textscan(val, '%f', 'HeaderLines' ,17));
The 17 here is my estimate from counting blank lines. I would have been able to provide a more accurate number if you had posted actual text instead of just a picture of text.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!