xy0='clutterfastwalk.txt' %  i'm walking fast
xy1='test3standrun.txt' % walking while attacker runs up behind me
xy2='test4walkrun3persons.txt' % 3 persons running up behind me and passing
xy3='test1attack.txt' % pickpocket
xy4='standstillwithbike.txt' % i'm standing still, bike coming up behind passing
xy5='fastwalkbike.txt' %  i'm walking fast, bike comes up behind me and passes
xy6='constvel_accel3people.txt' % i'm const velocity, 3 people accel behind
xy7='walkcar.txt' % i'm walking (const velocity), car accelerating behind me
xy8='car3.txt' % i'm walking (const velocity), car accelerating behind me
xy9='caraway.txt' % i'm walking (const velocity), car accel in front of me
xya='walkrunmetal.txt' % i'm walking, attacker with metal object behind
xyb='walkrunmetal4.txt' % good example of harmonics (distortion, clippling)
xyc='pickpocket2.txt' %
xyd='pickpocket3.txt' %
xye='pickpocket4.txt' %

disp(sprintf('about to load data'))
eval(sprintf('load %s',xy0));
eval(sprintf('load %s',xy1));
eval(sprintf('load %s',xy2));
eval(sprintf('load %s',xy3));
eval(sprintf('load %s',xy4));
eval(sprintf('load %s',xy5));
eval(sprintf('load %s',xy6));
eval(sprintf('load %s',xy7));
eval(sprintf('load %s',xy8));
eval(sprintf('load %s',xy9));
eval(sprintf('load %s',xya));
eval(sprintf('load %s',xyb));
eval(sprintf('load %s',xyc));
eval(sprintf('load %s',xyd));
eval(sprintf('load %s',xye));
disp(sprintf('loaded data'))
xy0=xy0(1:length(xy0)-4);
xy1=xy1(1:length(xy1)-4);
xy2=xy2(1:length(xy2)-4);
xy3=xy3(1:length(xy3)-4);
xy4=xy4(1:length(xy4)-4);
xy5=xy5(1:length(xy5)-4);
xy6=xy6(1:length(xy6)-4);
xy7=xy7(1:length(xy7)-4);
xy8=xy8(1:length(xy8)-4);
xy9=xy9(1:length(xy9)-4);
xya=xya(1:length(xya)-4);
xyb=xyb(1:length(xyb)-4);
xyc=xyc(1:length(xyc)-4);
xyd=xyd(1:length(xyd)-4);
xye=xye(1:length(xye)-4);
eval(sprintf('z0 = complexify(%s);',xy0))
eval(sprintf('z1 = complexify(%s);',xy1))
eval(sprintf('z2 = complexify(%s);',xy2))
eval(sprintf('z3 = complexify(%s);',xy3))
eval(sprintf('z4 = complexify(%s);',xy4))
eval(sprintf('z5 = complexify(%s);',xy5))
eval(sprintf('z6 = complexify(%s);',xy6))
eval(sprintf('z7 = complexify(%s);',xy7))
eval(sprintf('z8 = complexify(%s);',xy8))
eval(sprintf('z9 = complexify(%s);',xy9))
eval(sprintf('za = complexify(%s);',xya))
eval(sprintf('zb = complexify(%s);',xyb))
eval(sprintf('zc = complexify(%s);',xyc))
eval(sprintf('zd = complexify(%s);',xyd))
eval(sprintf('ze = complexify(%s);',xye))
disp(sprintf('complexified data'))

z0cal=calibrateradar(z0); % in case we don't have a clutter only sequence for
z1cal=calibrateradar(z1); %
z2cal=calibrateradar(z2); %
z3cal=calibrateradar(z3); %
z4cal=calibrateradar(z4); %
z5cal=calibrateradar(z5); %
z6cal=calibrateradar(z6); %
z7cal=calibrateradar(z7); %
z8cal=calibrateradar(z8); %
z9cal=calibrateradar(z9); %
zacal=calibrateradar(za); %
zbcal=calibrateradar(zb); %
zccal=calibrateradar(zc); %
zdcal=calibrateradar(zd); %
zecal=calibrateradar(ze); %

subplot(351)
%ZZ0=tfmann(z0cal,500,500,1); tvfortf(ZZ0)
tfhandtv(z0cal);
title('just walking')
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(352)
%ZZ1=tfmann(z1cal,500,500,1); tvfortf(ZZ1)
tfhandtv(z1cal);
title('attacker')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(353)
%ZZ2=tfmann(z2cal,500,500,1); tvfortf(ZZ2)
tfhandtv(z2cal);
title('attackers')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(354)
%ZZ3=tfmann(z3cal,500,500,1); tvfortf(ZZ3)
tfhandtv(z3cal);
title('pickpocket')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(355)
%ZZ4=tfmann(z4cal,500,500,1); tvfortf(ZZ4)
tfhandtv(z4cal);
title('standing,bike')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(356)
%ZZ5=tfmann(z5cal,500,500,1); tvfortf(ZZ5)
tfhandtv(z5cal);
title('bike')
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(357)
%ZZ6=tfmann(z6cal,500,500,1); tvfortf(ZZ6)
tfhandtv(z6cal);
title('attackers')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(358)
tfhandtv(z7cal);
title('car')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(359)
tfhandtv(z8cal);
title('car')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(3,5,10)
tfhandtv(z9cal);
title('car away')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot
xlabel('') % get rid of redundant "TIME" label cluttering the plot below

subplot(3,5,11)
tfhandtv(zacal);
title('weapon')

subplot(3,5,12)
tfhandtv(zbcal);
title('weapon')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot

subplot(3,5,13)
tfhandtv(zccal);
title('pickpocket')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot

subplot(3,5,14)
tfhandtv(zdcal);
title('pickpocket')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot

subplot(3,5,15)
tfhandtv(zecal);
title('pickpocket')
ylabel('') % get rid of redundant "FREQUENCY" label cluttering next plot

