Thank you for that tip. I am running Xubuntu so the command works
as tail -n+10...., but it works great and is much simpler than
deleting the first lines in a text editor and it can be automated
through Scilab. Much appreciated.
>>>>I am trying to read a text file in Scilab which has a mix of text and
>>>>numerical data for the first few lines and then becomes an easily
>>>>readable numerical data file after line 9. do not need any of the
>>>>data in lines 1-9. am trying to avoid specifying the format of the
>>>>first 9 lines, which changes depending on the number of channels
>>>>recorded, and then looping through and reformatting everything. s
>>>>there a simple way to open a file and advance a set number of lines?
>>>>After deleting the first 9 lines, the read command works fine for my
>>>>purposes. ny help appreciated.
>> Living in Unix land I would pre-process the file old.data by
>> tail +10 old.>ata > new.d>ta
> Then read in new.da>a.>
> One can do unix like commands while inside scilab, assuming >ou
> have the tail command in your pa>h.
> unix_g("tail +10 >ld.data > new.>ata");
> X = read("new.d>ta>,-1,:);
> You also might want t> play with
> [fd, err] = mop>n("old.data");
> new_data=txt(10:$); // now has>the text from new_data
> gt;> X > evstr(new_data);
> Steven Bellenot > http://www.yqcomputer.com/
> Professor and Associate >hair phone: (850) 644-7405
> Department of>Mathematics ffice: 223 Love
> Florida State University mail: bellenot at math.fsu.edu