Adding Matlab test to evaluate C++ and ITA Toolbox implementation of Maekawa diffraction filter

parent 7d558f37
%% Load C++ implementation result
maekawa_ir_cpp = ita_read( 'MaekawaTestIR.wav' );
%% Run ITA-Toolbox diffraction simulation
n1 = [ -1 1 0 ];
n2 = [ 1 1 0 ];
loc = [ 0 1 0 ];
w = itaInfiniteWedge( n1, n2, loc );
s = [ -2 0 0 ];
r = [ 2 0 0 ];
c = 344.0;
maekawa_ir = maekawa_ir_cpp;
maekawa_ir.freqData = ita_diffraction_maekawa( w, s, r, maekawa_ir_cpp.freqVector, c );
%% Combined result
maekawa_eval = ita_merge( maekawa_ir, maekawa_ir_cpp );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment