From 2103216cafabde156c17538b3125900bb2c29e28 Mon Sep 17 00:00:00 2001 From: Jan Benda Date: Tue, 30 Jan 2018 11:18:23 +0100 Subject: [PATCH] improved plots in population vector solution --- .../solution/populationvector.m | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/projects/project_populationvector/solution/populationvector.m b/projects/project_populationvector/solution/populationvector.m index 8a52803..9e8d475 100644 --- a/projects/project_populationvector/solution/populationvector.m +++ b/projects/project_populationvector/solution/populationvector.m @@ -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)')