function setbitpix

Change the pixel type of X.

Syntax
result = setbitpix(X, BITPIX [, BSCALE [, BZERO]])

Arguments
X:   The array whose pixel type is to be changed
BITPIX:   Desired pixel type:
BITPIX = -128:   Complex (note that this does not conform to FITS standard)
BITPIX = -64:   Floating point, double precision
BITPIX = -32:   Floating point, single precision
BITPIX = 8:   Unsigned char
BITPIX = 16:   Short
BITPIX = 32:   Long
BITPIX = 64:   Long Long
BSCALE, BZERO:   For integer BITPIX, optionally BSCALE and BZERO can be given. The value represented by each pixel is given by value * BSCALE + BZERO (the defaults are BSCALE = 1 and BZERO = 0)


See also
function getbitpix