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: Split column ignoring header rows
Replies: 1   Last Post: May 8, 2013 8:37 AM

Advanced Search

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

Posts: 2
Registered: 5/8/13
Split column ignoring header rows
Posted: May 8, 2013 8:19 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,
I am trying to split a single column into multiple columns of equal length. My data (txt file) looks like this:

26041312:01:28.07
AZ=91.14
EL=0.46
-109
-111
-116
-117
-117
-114..
26041312:01:28.07
AZ=91.14
EL=0.46
-109
-111
-116
-117
-117
-114..
26041312:01:28.07
AZ=91.14
EL=0.46
-109
-111
-116
-117
-117
-114.. etc

I basically want to ignore the 3 header rows inbetween the data (26041312:01:28.07, AZ=91.14, EL=0.46) and extract the numerical data (-109, -111, -116 etc) to separate columns. I understand that I can use 'reshape' to split the column but I can't seem to successful read the txt file in (using fopen), I guess because of the header files inbetween the data?

I am new to Matlab, any thoughts would be greatly appreciated.



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.