Commit d5f2c46d authored by Armin Erraji's avatar Armin Erraji

added UTD/UTDTest.m

parent 31464c3e
%% Load C++ implementation result
maekawa_ir_cpp = ita_read( 'MaekawaTestIR.wav' );
maekawa_ir_cpp.signalType = 'energy';
%% Load C++ implementation result
utd_ir_cpp = ita_read( 'UTDTestIR.wav' );
utd_ir_cpp.signalType = 'energy';
%% Run ITA-Toolbox diffraction simulation
n1 = [ -1 1 0 ];
......@@ -13,14 +13,11 @@ 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 );
utd_ir = utd_ir_cpp;
utd_ir.freqData = ita_diffraction_utd( w, s, r, utd_ir_cpp.freqVector, c );
utd_ir = maekawa_ir_cpp;
utd_ir.freqData = ita_diffraction_utd( w, s, r, maekawa_ir_cpp.freqVector, c );
%% Combined result
maekawa_eval = ita_merge( maekawa_ir, maekawa_ir_cpp,utd_ir );
maekawa_eval = ita_merge( utd_ir, utd_ir_cpp );
%% Plot result
......
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