get the numerical values from char
1 view (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1131020/image.png)
Hello everyone, Is there a way to get the numerical column which starts with -0.00013494 into an array in matlab?
2 Comments
Answers (1)
Walter Roberson
on 21 Sep 2022
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 Comments
See Also
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!