%to plot voltage versus csd
% Nearest to dentate
figure
subplot (3,3,4); 
plot (lesstime, lessdata(:,50));  axis off; title ('Dentate');
hold on
plot (lesstime, lessBuda(:,50),('k')); axis off; 
plot (lesstime, lesshoricsd(:,36),('r')); axis off; 
plot (lesstime, lessvertcsd(:,41),('m'));  axis off;

%nearest to CA3 pyramidal cell layer
subplot (3,3,2); 
plot (lesstime, lessdata(:,12));  axis off; title ('CA3 PC');
hold on
plot (lesstime, lessBuda(:,12),('k'));  axis off;
plot (lesstime, lesshoricsd(:,9),('r'));  axis off;
plot (lesstime, lessvertcsd(:,4),('m'));  axis off;

% mid dendrites CA3
subplot (3,3,5);
plot (lesstime, lessdata(:,29));  axis off; title ('CA3 dendrites')
hold on
plot (lesstime, lessBuda(:,29),('k'));  axis off;
plot (lesstime, lesshoricsd(:,22),('r'));  axis off;
plot (lesstime, lessvertcsd(:,14),('m'));  axis off;

%nearest to CA1 pyramidal cell layer
subplot (3,3,6);
plot (lesstime, lessdata(:,55));  axis off; title ('CA1 PC');
hold on
plot (lesstime, lessBuda(:,55),('k'));  axis off;
plot (lesstime, lesshoricsd(:,42),('r'));  axis off;
plot (lesstime, lessvertcsd(:,47),('m'));  axis off;

legend ('Average voltage', '2D CSD', 'Horiz 1D CSD', 'Vert 1D CSD');