Parsing files using textscan()



Hi all,

I am thinking there might be a way to tell Matlab to parse a
multi-format text file starting from a specific header-line
identified by a particular string. Could someone throw more light on
this? Textscan() can oversee n headerlines, but is there a way to
start scanning after a certain header?
Eg.File1 File 2
version ... version
format .... format
..... ......
data junk...
4 5 etc..
2 3 data
... 1 2 3
....
I want the code to figure out the location of the header named 'data'
and start scanning from the next line onwards.

Thanks in advance,
AKS
.



Relevant Pages

  • Re: Regular Expression - old regex module vs. re module
    ... The ReportTemplate class reads a template file or string containing a ... header and line format for multiple calls with sequence data. ... def _format: ...
    (comp.lang.python)
  • Re: How can I insert BOTH a header and upper-right page numbering?
    ... WP is being able to format by using simple buttons, ... loaded the Quick Access toolbar with all the basic commands I ... A Page number isn't considered to be, in itself, a header, but a part of a header. ... The Building Block galleries can be helpful for the 'now where did I save that' question when you know you had something 'only last ...
    (microsoft.public.word.docmanagement)
  • Re: adding headers and footers to a word document
    ... I clicked on SHOW NEXT and got to the even page header. ... The front matter has no title showing on the odd pages. ... Should I do the author/title first or the numbering? ... the page numbers using the Format Page Number button; ...
    (microsoft.public.word.docmanagement)
  • RE: Quoted Printable in Messages (Subject Changed)
    ... which definitely went out in HTML format with all the MIME headers and so ... The important part is the Content-Transfer-Encoding: header line. ... the last character on the line as a "soft" line break accommodates longer ... followed by a two-digit hexadecimal representation. ...
    (comp.os.vms)
  • Re: How can I put dictionary-style page headers in an Access repor
    ... How do I reformat my document from table format to ... (First Greek word and last Greek word on the page). ... can seem to find a way to do the same in an Access Report. ... the control in the header. ...
    (microsoft.public.access.reports)

Loading