forked from cortex-lab/KiloSort
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateChannelMapFile.m
More file actions
28 lines (22 loc) · 845 Bytes
/
createChannelMapFile.m
File metadata and controls
28 lines (22 loc) · 845 Bytes
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
% create a channel map file
Nchannels = 32;
connected = true(Nchannels, 1);
chanMap = 1:Nchannels;
chanMap0ind = chanMap - 1;
xcoords = ones(Nchannels,1);
ycoords = [1:Nchannels]';
kcoords = ones(Nchannels,1); % grouping of channels (i.e. tetrode groups)
save('C:\DATA\Spikes\20150601_chan32_4_900s\chanMap.mat', ...
'chanMap','connected', 'xcoords', 'ycoords', 'kcoords', 'chanMap0ind')
%%
Nchannels = 32;
connected = true(Nchannels, 1);
chanMap = 1:Nchannels;
chanMap0ind = chanMap - 1;
xcoords = repmat([1 2 3 4]', 1, Nchannels/4);
xcoords = xcoords(:);
ycoords = repmat(1:Nchannels/4, 4, 1);
ycoords = ycoords(:);
kcoords = ones(Nchannels,1); % grouping of channels (i.e. tetrode groups)
save('C:\DATA\Spikes\Piroska\chanMap.mat', ...
'chanMap','connected', 'xcoords', 'ycoords', 'kcoords', 'chanMap0ind')