[linalg] added exercise sheet

This commit is contained in:
2019-01-06 23:23:42 +01:00
parent 072b9a7053
commit 657192ab58
5 changed files with 254 additions and 0 deletions

View File

@@ -117,4 +117,26 @@ hold on;
scatter( time(tinx(kinx1)), voltage(tinx(kinx1)), 10.0, 'r', 'filled' );
scatter( time(tinx(kinx2)), voltage(tinx(kinx2)), 10.0, 'g', 'filled' );
hold off;
% ISIs:
figure(4);
clf;
subplot(1, 3, 1)
allisis = diff(spiketimes);
hist(allisis, 20);
title('all spikes')
xlabel('ISI [ms]')
subplot(1, 3, 2)
spikes1 = time(tinx(kinx1));
isis1 = diff(spikes1);
hist(isis1, 20);
title('neuron 1')
xlabel('ISI [ms]')
subplot(1, 3, 3)
spikes2 = time(tinx(kinx2));
isis2 = diff(spikes2);
hist(isis2, 20);
title('neuron 2')
xlabel('ISI [ms]')
pause