-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix major bug in parsechans where random trial extraction occured wit…
…hin a forloop causing different trials to be chosen every breath. add new script probe_xcorrlab to analyze the time of max correlations between electrodes
- Loading branch information
Matt Valley
committed
May 18, 2010
1 parent
e1fd182
commit d1ea584
Showing
4 changed files
with
83 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
% input data is "corrtime_breath" output from xcorr_alltoall | ||
|
||
tdt_map = [8,16,24,32;... | ||
7,15,23,31;... | ||
6,14,22,30;... | ||
5,13,21,29;... | ||
4,12,20,28;... | ||
3,11,19,27;... | ||
2,10,18,26;... | ||
1,9,17,25]; | ||
rows = size(tdt_map,1); | ||
cols = size(tdt_map,2); | ||
|
||
basebreaths = 1:11; | ||
odorbreaths = 13:15; | ||
postbreaths = 16:30; | ||
|
||
avelag_odor = mean(mean(corrtime_breath(:,:,:,odorbreaths),4),3); | ||
avelag_base = mean(mean(corrtime_breath(:,:,:,basebreaths),4),3); | ||
|
||
for x=1:rows | ||
for y=1:cols | ||
indx = tdt_map(x,y); | ||
plotlag_base(x,y) = mean(avelag_base(:,indx),1); | ||
plotlag_odor(x,y) = mean(avelag_odor(:,indx),1); | ||
end | ||
end | ||
|
||
lagdiff = plotlag_odor-plotlag_base; | ||
imagesc(lagdiff);colorbar; |