improved plots in population vector solution

This commit is contained in:
Jan Benda 2018-01-30 11:18:23 +01:00
parent c2e37b516e
commit 2103216caf

View File

@ -1,6 +1,5 @@
close all
datapath = '../';
% datapath = '../code/';
datapath = '../data/';
files = dir(strcat(datapath, 'unit*.mat'));
for file = files'
a = load(strcat(datapath, file.name));
@ -82,10 +81,10 @@ ylabel('firing rate')
hold off;
subplot(1, 3, 2);
hist(angleestimates1);
xlabel('stimulus angle')
xlabel('population vector angle')
subplot(1, 3, 3);
hist(angleestimates2);
xlabel('stimulus angle')
xlabel('max. rate angle')
angle
mean(angleestimates1)
mean(angleestimates2)
@ -124,9 +123,9 @@ end
figure();
subplot(1, 2, 1);
scatter(angles, e1m);
xlabel('stimuluis angle')
ylabel('estimated angle')
xlabel('stimulus angle')
ylabel('estimated angle (population vector)')
subplot(1, 2, 2);
scatter(angles, e2m);
xlabel('stimuluis angle')
ylabel('estimated angle')
xlabel('stimulus angle')
ylabel('estimated angle (maximum firing rate)')