Function: long2fir
LONG2FIR   Cut LONG window to FIR
  Usage:  g=long2fir(g,L);

  LONG2FIR(g,L) will cut the LONG window g to a length L FIR window by
  cutting out the middle part. Note that this is a slightly different
  behaviour than MIDDLEPAD.

  LONG2FIR(g,L,'wp') or LONG2FIR(g,L,'hp') does the same assuming the
  input window is a whole-point even or half-point even window,
  respectively.

Url: http://ltfat.github.io/doc/sigproc/long2fir.html

See also: fir2long, middlepad.

Package: ltfat