====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
analysis:nsb2016:week10 [2017/07/06 18:35] mvdm [Estimating tuning curves] |
analysis:nsb2016:week10 [2018/04/17 15:20] (current) |
||
---|---|---|---|
Line 85: | Line 85: | ||
<code matlab> | <code matlab> | ||
LoadMetadata; | LoadMetadata; | ||
+ | |||
+ | % ENCoding variable names, for data used to estimate tuning curves, which capture | ||
+ | % the relationship between some variable and firing rate (here: "How is position | ||
+ | % (en)coded by the neurons we are recording?"), as opposed to DECoding variable names, | ||
+ | % which are used for data we want to decode (e.g. replay). | ||
ENC_S = restrict(S,metadata.taskvars.trial_iv); | ENC_S = restrict(S,metadata.taskvars.trial_iv); | ||
ENC_pos = restrict(pos,metadata.taskvars.trial_iv); | ENC_pos = restrict(pos,metadata.taskvars.trial_iv); |