[Top][All Lists]

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

Re: fread : figuring out binary file format

From: Muthiah Annamalai
Subject: Re: fread : figuring out binary file format
Date: Tue, 12 Sep 2006 10:44:10 -0500


> specifically what does "invalid stream number = -1" mean?
> also, i gather that to use fread, this syntax is OK :
> octave:5> fread ("28JUL06G.DAT",Inf,"32*single",0,"ieee-be")

> ... where "28JUL06G.DAT"  is substituted for "fid" or "f" as i read in
> `help -i fread" -bryan

Well: you need to use it like in 2 steps:
1. Open file & get file ID.
2. Use file ID to read the string.

fread (fid,Inf,"32*single",0,"ieee-be")

%do whatever


Hope that helps.

reply via email to

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