%amplitudes plots n=26; figure(); for i=1:n %first take the x and y coordinates and extract only the ones that %correspond to 'good channels' xgood = xcoords(spikes.goodChannels{1,i}); ycoord = ycoords(spikes.goodChannels{1,i}); subplot(3,9,i); scatter(xgood,ygood,spikes.maxxCh{1,i}/max(spikes.maxxCh{1,i})^(1/10),spikes.maxxCh{1,i},'filled') colormap(flipud(hot)) end