Home > slabtools > mat2slab.m

mat2slab

PURPOSE ^

mat2slab - writes HRTF data to slab3d-format file.

SYNOPSIS ^

function mat2slab( fileName, inHRIR, inITD, inMap, azInc, elInc,numPts, strName, strComment, fs, scale )

DESCRIPTION ^

 mat2slab - writes HRTF data to slab3d-format file.

 mat2slab( fileName, inHRIR, inITD, inMap, azInc, elInc,
           numPts, strName, strComment, fs, scale )

 fileName   - slab3d HRTF database filename
 inHRIR     - input HRIR matrix
 inITD      - input ITD vector
 inMap      - input azimuth and elevation map matrix
 azInc      - output azimuth increment (see below)
 elInc      - output elevation increment (see below)
 numPts     - number of FIR points in each HRIR (default = 128)
 strName    - name of head (< 32 chars) (default = empty)
 strComment - comment string (< 256 chars) (default = empty)
 fs         - sample rate (default = 44100)
 scale      - scale HRIR to +/- 1.0 flag (default = 1)

 mat2slab requires map2map.

 mat2slab outputs the slab3d map grid defined below:
   az = [180:-azInc:-180]; el = [90:-elInc:-90];
   mapslab = [kron(ones(size(az)),el); kron(az,ones(size(el)))];

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 20-Nov-2009 18:52:57 by m2html © 2003