help-octave
[Top][All Lists]
Advanced

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

Re: <no subject>


From: Mirek Kwasniak
Subject: Re: <no subject>
Date: Sat, 20 Jul 2002 11:30:45 +0200
User-agent: Mutt/1.3.28i

On Fri, Jul 19, 2002 at 01:25:53PM -0500, Thomas Becker wrote:
> I want to generate a binary file from octave, i.e writing integer number 0
> to 255 as binary numbers into a file. Can somebody give me a hint how to
> do this

You didn't specify what does binary mean:) I assume one byte unsigned int.

FID=fopen('filename','w');
COUNT = fwrite (FID, 0:255, 'int8');
fclose(FID);

Check help for fwrite for other formats and options.

Mirek



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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