-
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.
add solo_spec_stats to redo statitistics without having to run whole …
…parsexchan script over again xcorr_alltoall has major changes to pick max correlation ina time window, and to also output the specific time of maximum xcorr in whole time segment
- Loading branch information
Matt Valley
committed
May 15, 2010
1 parent
d6050a7
commit 7fe8f02
Showing
4 changed files
with
68 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
% import "f" vector | ||
% sequentially load all "spec_norm" matrices for each odor presentation | ||
|
||
gamma = [50 100]; | ||
g_freqs = find(f>gamma(1) & f<gamma(2)); | ||
brthindx = [-10:1:20]; | ||
|
||
% sequentially import all channels | ||
[pathname] = uipickfiles('refilter', '\.mat$', 'type', {'*.mat', 'MAT-files'},... | ||
'prompt', 'Select all .mat files from MEA channels', 'output', 'cell'); | ||
|
||
for odor = 1:length(pathname); | ||
load(pathname{odor}); % filename must be "spec_norm" | ||
for n=1:size(spec_norm,5); | ||
[sig_breaths(:,n),sig_vals(:,n),cis(:,n),all_specmax(:,:,n)] = test_breathsig(spec_norm(:,:,:,:,n),brthindx,g_freqs); | ||
end | ||
sig_breaths_allodors(:,:,odor) = sig_breaths; | ||
sig_vals_allodors(:,:,odor) = sig_vals; | ||
end | ||
|
||
sumbreaths = squeeze(sum(sig_breaths_allodors,1)); |
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