This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
analysis:course:week10 [2013/12/19 16:53] 127.0.0.1 external edit |
analysis:course:week10 [2018/07/07 10:19] (current) |
||
---|---|---|---|
Line 95: | Line 95: | ||
</code> | </code> | ||
- | Next, we plot the spikes of a single cell (cell 5, which we met in the previous module) where the rat was when each spike was emitted: | + | Next, we plot the spikes of a single cell (cell 7, which we met in the previous module) where the rat was when each spike was emitted: |
<code matlab> | <code matlab> | ||
% get x and y coordinate for times of spike | % get x and y coordinate for times of spike | ||
- | iC = 5; | + | iC = 7; |
spk_x = interp1(Range(sd.x),Data(sd.x),Data(sd.S{iC}),'linear'); | spk_x = interp1(Range(sd.x),Data(sd.x),Data(sd.S{iC}),'linear'); | ||
spk_y = interp1(Range(sd.y),Data(sd.y),Data(sd.S{iC}),'linear'); | spk_y = interp1(Range(sd.y),Data(sd.y),Data(sd.S{iC}),'linear'); |