blockcourseneuroscience
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
blockcourseneuroscience [2008/09/30 14:12] – tobi | blockcourseneuroscience [2008/10/02 05:57] – tobi | ||
---|---|---|---|
Line 9: | Line 9: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===Matlab code for experiments=== | ||
+ | <code matlab> | ||
+ | %% | ||
+ | |||
+ | loadaerdat; | ||
+ | |||
+ | %% | ||
+ | x=64; | ||
+ | y=64; | ||
+ | p=1; | ||
+ | |||
+ | ra=p+bitshift(x, | ||
+ | |||
+ | %% | ||
+ | ind=find(ra==allAddr); | ||
+ | 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, | ||
+ | |||
+ | |||
+ | ind=find(ra==allAddr); | ||
+ | res=allTs(ind); | ||
+ | c=[c length(ind)]; | ||
+ | end | ||
+ | end | ||
+ | </ |
blockcourseneuroscience.txt · Last modified: 2024/02/29 07:28 by 127.0.0.1