help-octave
[Top][All Lists]
Advanced

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

Re: Output a 3D array/image


From: Judd Storrs
Subject: Re: Output a 3D array/image
Date: Mon, 12 Jul 2010 21:21:14 -0400

On Sun, Jul 11, 2010 at 5:20 PM, Li-Ping Yuan <address@hidden> wrote:
> However, I couldn't find a way to save such 3D image to a file.  Your help
> is highly appreciated.  Other file format would be OK, too.  Or even "raw"
> form.

If you want to write out raw data, say as 32-bit floats:

f = fopen("filename","wb") ;
fwrite(f, data, "float32") ;
fclose(f) ;

fwrite has other options to control things like endianness and padding
if you need them.


--judd


reply via email to

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