a0 = 'walkrunmetal.txt';
a1 = 'walkrunmetal4.txt';
disp(sprintf('about to load %s and %s',a0,a1))
eval(sprintf('load %s',a0));
eval(sprintf('load %s',a1));
disp(sprintf('loaded %s and %s',a0,a1))
a0=a0(1:length(a0)-4); % remove the ".txt" from the end of the filename
a1=a1(1:length(a1)-4);
eval(sprintf('z0 = complexify(%s);',a0))
eval(sprintf('z1 = complexify(%s);',a1))
disp(sprintf('complexified %s and %s',a0,a1))

z0cal=calibrateradar(z0); % we don't have a clutter only sequence for
z1cal=calibrateradar(z1); %                  calibration , so just use self...

subplot(221)
plot(z0cal);
title('z0'); xlabel('REAL'); ylabel('IMAG');
axis([-6 6 -6 6]); axis('equal'); grid

subplot(222)
plot(z1cal);
title('z1'); xlabel('REAL'); ylabel('IMAG');
axis([-6 6 -6 6]); axis('equal'); grid

subplot(223)
ZZ0=tfmann(z0cal,500,500,1);
tvfortf(ZZ0)
title('ZZ0')

ZZ1=tfmann(z1cal,500,500,1);
subplot(224)
tvfortf(ZZ1)
title('ZZ1')

