Skip to content

SONRealToADC

  SONREALTOADC Converts floating point array to int16
  and returns a header with updated scale and offset

  Example:
  [OUT,HOUT]=SONREALTOADC(IN, HIN)
  The input data are scaled to fill the maximum range of the int16
  output array. Scale and offset in HOUT are updated in SON format.

  Malcolm Lidierth Updated 10/06
  Copyright © The Author & King's College London 2002-2006

  Changes: 06/07 casting order changed to reduce rounding effects
           09/07 Scale factor: correct to 65535