help-octave
[Top][All Lists]
Advanced

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

Re: Help with fopen and fread


From: Glenn Oliver
Subject: Re: Help with fopen and fread
Date: Sat, 10 Jun 2006 20:58:29 -0700 (PDT)

Thanks for taking time to look at my question.  

"filename" is a passed string argument, such as "M11_MGS_060517144832.ser".   
The file is in the same directory that my ".m" file resides.  

If I do a simple command line fid = fopen(filename,"rb","ieee-be"), after I
assigned the correct file to filename, I get a fid value of 3 returned,
which is correct.  I then enter the following on the command line and get an
incorrect lvalue message:
[test, count] = fread(3, Inf, "uint32", 44)

I would expect an array of 36000 elements to be returned to test and count =
36000.

Thank you again for you help,
Glenn Oliver
--
View this message in context: 
http://www.nabble.com/Help-with-fopen-and-fread-t1768134.html#a4813766
Sent from the Octave - General forum at Nabble.com.



reply via email to

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