How to convert a string of characters to numbers?
1 view (last 30 days)
Show older comments
I have the following string obtained from a text file (the text file has a lot of info so I had to go and look for certain lines):
0 0 0 0 0.1 0 0 0 BlaBla
Another line might look like this
1 0.013 0.0156 -0.104 0.0376 0.0624 0.132 0.132 BlaBlaBla
By the way I'm reading the file everything is now a string of characters.
How can I convert that to a vector? Notice that the last column is a string of characters. The white spaces on the first line is different than on the second one too.
Any help is appreciated thanks.
0 Comments
Accepted Answer
See Also
Categories
Find more on Characters and Strings 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!