User Tools

Site Tools


blockcourseneuroscience

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

blockcourseneuroscience [2008/09/30 16:12]
tobi
blockcourseneuroscience [2008/10/02 07:57] (current)
tobi
Line 9: Line 9:
   * [[http://siliconretina.ini.uzh.ch|The silicon retina dynamic vision sensor]]   * [[http://siliconretina.ini.uzh.ch|The silicon retina dynamic vision sensor]]
   * [[http://www.ini.uzh.ch/~tobi/friend|The physiologist's friend project]]   * [[http://www.ini.uzh.ch/~tobi/friend|The physiologist's friend project]]
 +  * [[http://www.ini.uzh.ch/~tobi/anaprose/recep|Adapative photoreceptor circuit]]
 +
 +===Matlab code for experiments===
 +<code matlab>
 +%% 
 +
 +loadaerdat;  % loads retina data from a recorded .dat file. Raw addreses are allAddr, timestamps in us are allTs
 +
 +%%
 +x=64;
 +y=64;
 +p=1;
 +
 +ra=p+bitshift(x,1)+bitshift(y,8);  % compute the raw address of pixel x,y=64,64 with polarity=1 (on)
 +
 +%%
 +ind=find(ra==allAddr); % find the indices of all the spikes from this pixel
 +allTs(ind) % print the timestamps
 +
 +
 +
 +%% iterate of a block of pixels and store the number of spikes from each pixel in a vector c, then histogram these counts
 +c=[];
 +
 +for i=0:1    
 +for t=48:96
 +
 +    x=t;
 +    y=t;
 +    p=i;
 +
 +    ra=p+bitshift(x,1)+bitshift(y,8);
 +
 +
 +    ind=find(ra==allAddr);
 +    res=allTs(ind);
 +    c=[c length(ind)];
 +end
 +end
 +</code>
blockcourseneuroscience.txt · Last modified: 2008/10/02 07:57 by tobi