Grid cell model with compression effects (Raudies & Hasselmo, 2015)

 Download zip file 
Help downloading and running models
Accession:194881
We present a model for compression of grid cell firing in modules to changes in barrier location.
Reference:
1 . Raudies F, Hasselmo ME (2015) Differences in Visual-Spatial Input May Underlie Different Compression Properties of Firing Fields for Grid Cell Modules in Medial Entorhinal Cortex. PLoS Comput Biol 11:e1004596 [PubMed]
Model Information (Click on a link to find other models with that property)
Model Type:
Brain Region(s)/Organism: Entorhinal cortex;
Cell Type(s):
Channel(s):
Gap Junctions:
Receptor(s):
Gene(s):
Transmitter(s):
Simulation Environment: MATLAB;
Model Concept(s): Grid cell;
Implementer(s): Raudies, Florian [florian.raudies at gmail.com];
clc; clear all; close all; clear classes
% *************************************************************************
% Test the creation of a box and views of the spherical camera orbiting 
% around (0,0) on a circular trajectory.
%
%   Copyright (C) 2015  Florian Raudies, 05/02/2015, Palo Alto, CA.
%   License, GNU GPL, free software, without any warranty.
% *************************************************************************

% Define trajectory
nStep   = 45; % Number of steps.
r       = 25; % Radius.
Angle   = 2*pi*linspace(0,1,nStep);
Pos = [+r*cos(Angle);  zeros([1,nStep]); +r*sin(Angle);  zeros(1,nStep)];
Dir = [-sin(Angle);    zeros(1,nStep);   +cos(Angle);    zeros(1,nStep)];
Up  = [zeros(1,nStep); ones(1,nStep);    zeros(1,nStep); zeros(1,nStep)];

% Define scene
scene = Scene();
scene.addObject(Cube([-50 -25 -50 50 25 50],[15 15 15]));
scene.setCamera(SphericalCamera([0;0;1;0],[0;1;0;0],[0;0;0;0],...
    2/3*pi,3/4*pi,0,0,0,0,5,10^3));
P = scene.getPoints()';

% Simulate the movement
for iStep = 1:nStep,
    scene.orientCamera(Dir(:,iStep),Up(:,iStep));
    scene.moveCameraTo(Pos(:,iStep));
    [Az El D V] = scene.getImagePoints();    
    
    cla; 
    subplot(1,2,1);
        quiver3(Pos(3,iStep),Pos(1,iStep),Pos(2,iStep),...
                Dir(3,iStep),Dir(1,iStep),Dir(2,iStep),10); hold on;
        plot3(P(3,~V),P(1,~V),P(2,~V),'.g',P(3,V),P(1,V),P(2,V),'.b'); hold off;
        view(0,90); axis equal tight; title('Top view');
    subplot(1,2,2);
        plot(Az*180/pi,El*180/pi,'.k');
        axis equal; axis([-1/3*pi 1/3*pi -3/8*pi 3/8*pi]*180/pi); title('Image');
    drawnow;
end

Loading data, please wait...