User Tools

Site Tools


blockcourseneuroscience

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blockcourseneuroscience [2008/09/30 14:12] tobiblockcourseneuroscience [2024/02/29 07:28] (current) – external edit 127.0.0.1
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: 2024/02/29 07:28 by 127.0.0.1