function [OutStruc] = IMSetup() %[OutStruc] = IMSetup() environmental parameters for image method simulation % % Edit this function example to define the different parameters of your % image method simulation. Returns the structure 'OutStruc' with the % following fields: % % Fs: sampling frequency % c: sound velocity % room: 3 element vector of enclosure dimensions [x_length y_length z_length] % micpos: N by 3 matrix, [x y z] positions of N microphones % beta: 6 element vector, wall reflection coefficients % straj: M by 3 matrix, [x y z] positions of M source trajectory points OutStruc.Fs = 16000; % sampling frequency in Hz OutStruc.c = 343; % propagation speed of acoustic waves in m/s OutStruc.room = [3 4 2.5]; % room dimensions in m OutStruc.micpos = [1.6 1 1.5; % [x y z] position of array microphones in m 1.4 1 1.5]; OutStruc.beta = [ones(1,6)*0.8]; % reflection coefficients in range [0 ... 1[ OutStruc.straj = [linspace(1,2,50).' ones(50,1)*3 ones(50,1)*1.5]; % [x y z] positions in source trajectory in m % straight line in front of mic pair, 50 source points