-
Notifications
You must be signed in to change notification settings - Fork 0
/
things_that_didnt_work.m
43 lines (34 loc) · 1.07 KB
/
things_that_didnt_work.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% elseif ( length(data2(i,:)) - center(i,j) < 32 )
% a = 32-center(i,j) +1;
% recenter=padarray(data2(i,:),[0 a],'past');
% SpikesEst(j,:,i)=recenter(i,-32+center(i,j)+a:center(i,j)+a+32);
% plot( SpikesEst(j,:,i))
% hold on
% else
% a = 32-center(i,j) +1;
% recenter=padarray(data2(i,:),[0 a],'pre');
% SpikesEst(j,:,i)=recenter(i,-32+center(i,j)+a:center(i,j)+a+32);
% plot( SpikesEst(j,:,i))
% hold on
% end
%
% end
% hold off
%
%
%find overlap
% for j = 1:NumOfSpikes2(i)
% SpikesEst(j,:,i) = data2(i, -32+spikeTimesEst(i,j):32+spikeTimesEst(i,j));
% spots = find(SpikesEst(j,:,i)>0.5);
% if sum(spots<20) > 0
% sumz(i) = sumz(i) + 1;
% spikes_ovl(i,j)=1;
% end
% plot(SpikesEst(j,:,i))
% hold on
% for m = 1:length(data2(i,:))
% if data2(i,:) < (-T2_2(i))
% neg = neg + 1;
% idx_of_neg(i,:) = m;
% end
% end