This shows you the differences between two versions of the page.
|
usage:tips [2010/02/24 05:02] Jonathan D. Victor |
usage:tips [2010/02/24 05:08] (current) Jonathan D. Victor |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ==== Utilities for summarizing a spike train data structure ==== | ==== Utilities for summarizing a spike train data structure ==== | ||
| - | Sometimes it is useful to provide a "snapshot" of a data structure X, i.e., a brief summary of how many sites and conditions, how many spikes, their times, etc. | + | Sometimes it is useful to provide a "snapshot" of a data structure X, i.e., a brief summary of how many sites (channels) and categories (conditions), how many spikes, their times, etc. |
| I wrote two utilities, one that summarizes the number of spikes, one that summarizes their times; both are provided (without warranty!) below. | I wrote two utilities, one that summarizes the number of spikes, one that summarizes their times; both are provided (without warranty!) below. | ||
| - | The following Matlab code provides a snapshot of the sites, conditions, and number of spikes: | + | The following Matlab code provides a snapshot of the sites (channels), categories (conditions), and number of spikes: |
| <code matlab statin_summ.m> | <code matlab statin_summ.m> | ||
| function counts=statin_summ(X,ifshow) | function counts=statin_summ(X,ifshow) | ||
| Line 54: | Line 55: | ||
| </code> | </code> | ||
| - | The following Matlab code provides a snapshot of the sites, conditions, and times of spikes: | + | The following Matlab code provides a snapshot of the sites (channels), categories (conditions), and times of spikes: |
| <code matlab statin_summt.m> | <code matlab statin_summt.m> | ||
| function times=statin_summt(X,ifshow) | function times=statin_summt(X,ifshow) | ||