% create a channel map file Nchannels = 32; % number of channels connected = true(Nchannels, 1); chanMap = 1:Nchannels; chanMap0ind = chanMap - 1; xcoords = [-18.0, -18.0, -18.0, -18.0, -18.0, -18.0, -18.0, -18.0, -18.0, -18.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]; ycoords = [-117.1875, -92.1875, -67.1875, -42.1875, -17.1875, 7.8125, 32.8125, 57.8125, 82.8125, 107.8125, -129.6875, -104.6875, -79.6875, -54.6875, -29.6875, -4.6875, 20.3125, 45.3125, 70.3125, 95.3125, 120.3125, 145.3125, -117.1875, -92.1875, -67.1875, -42.1875, -17.1875, 7.8125, 32.8125, 57.8125, 82.8125, 107.8125]; kcoords = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; fs = 32000.0; % sampling frequency save(fullfile('chanMap.mat'), ... 'chanMap','connected', 'xcoords', 'ycoords', 'kcoords', 'chanMap0ind', 'fs')