Reading an Array in scientific notation from a txt
Show older comments
Hi, I am trying to read the data from a txt file but I have been so far unable to manage to extract it using fscanf or textread.
the file is formatted as follows:
"Title1"
"Title2"
1.00000e-03 4.36579e-02
2.00000e-03 -8.85146e-02
3.00000e-03 -8.97553e-02
4.00000e-03 -7.65414e-02
5.00000e-03 -5.80485e-02
6.00000e-03 -4.28242e-02
7.00000e-03 -2.93374e-02
I am unable to read the numbers from the same line separately, and interpret them as numbers. Any help? Thanks!
1 Comment
per isakson
on 27 May 2015
Did you try importdata?
Accepted Answer
More Answers (0)
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!