Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: fscanf and headers of file
Replies: 1   Last Post: Feb 27, 2013 10:36 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
RICARDO

Posts: 5
Registered: 12/6/12
fscanf and headers of file
Posted: Feb 27, 2013 7:35 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello forum I want to read a file which contain headers and block of data.
Each block have 100 rows of numerical data and 2 headers with a numeric value for the headers.The structure of the data is the following:

DATA OUTPUT FOR JAN 28, 2013

EFF RADIUS(um) 0.150
---------------------
Time Bsc(TMat) Bsc(PAX) Bab(TMat) Bab(PAX)
12:04:40 11.93393 4.51143 18.03651 0.84142
12:04:50 5.90808 12.61199 8.92925 0.41656
12:05:00 11.32009 3.38943 17.10878 0.79814
...

EFF RADIUS(um) 0.200
---------------------
Time Bsc(TMat) Bsc(PAX) Bab(TMat) Bab(PAX)
12:04:40 11.93393 4.51143 18.03651 0.84142
12:04:50 5.90808 12.61199 8.92925 0.41656

...

EFF RADIUS(um) 0.250
---------------------
Time Bsc(TMat) Bsc(PAX) Bab(TMat) Bab(PAX)
12:04:40 11.93393 4.51143 18.03651 0.84142
12:04:50 5.90808 12.61199 8.92925 0.41656
...

and so on

How can I read the file using fscanf, or anyone have a better idea?
Thanks for your help in advance.




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.