[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Undisired header
From: |
William Krekeler |
Subject: |
RE: Undisired header |
Date: |
Wed, 20 Jul 2011 14:25:38 +0000 |
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Hikachu
Sent: Wednesday, July 20, 2011 9:08 AM
To: address@hidden
Subject: Undisired header
Hello,
I am working with datas I want to save in a file then use them in an other
octave file.
The thing is the name of my file depends of a variable, so I use it this way
:
fileName = sprintf('real_profile_NACA65_%d',k);
save(fileName, 'real_profile_NACA65')
because of that I can't do the " save -ascii ..." stuff.
The problem is : I get a 5 lines-header in my file, and I really don't need
it.
Do you have a solution to avoid getting this header??
If not, do you know how I can load the data without loading the header?
Thanks a lot
--
View this message in context:
http://octave.1599824.n4.nabble.com/Undisired-header-tp3680911p3680911.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
Why can't you use options? I copied and pasted the following from 'help save'
If save is invoked using the functional form
save ("-option1", ..., "file", "v1", ...)
then the OPTIONS, FILE, and variable name arguments (V1, ...) must
be specified as character strings.
Therefore the following test code works:
> test = rand(1,10);
> save('-ascii', 'file.txt', 'test' );
Also, to read without the headers either use a custom while loop until end of
file and dump the first few lines based upon regular expression matching, or
use dlmread with the row column defined to only read 6:end rows.
Bill