help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openning ascii file with headers that don't have special characters


From: kevinl
Subject: Re: openning ascii file with headers that don't have special characters (#) in front of them
Date: Tue, 4 Sep 2012 12:25:57 -0700 (PDT)

Thanks,
Following your suggestion I found a post at
https://mailman.cae.wisc.edu/pipermail/help-octave/2004-January/011648.html
that does what I want :

skip = 5;
n=10;
fid = fopen('hypsN10.dir/hbhypsNHYPSGRID10.dat');
for i=1:skip, fgets(fid);end
data = fscanf(fid,"%f",Inf);
data = reshape(data,n,length(data)/n)';


Kevin



--
View this message in context: 
http://octave.1599824.n4.nabble.com/openning-ascii-file-with-headers-that-don-t-have-special-characters-in-front-of-them-tp4643702p4643705.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]