ELEMENT2SPIKETIMES - retrieve spike times from an element
SPIKESTRUCT = ELEMENT2SPIKETIMES(E, ED)
Given an element E and its corresponding element document ED, this function
retrieves all spike times and related information. It returns a structure:
|----------------|----------------------------------------|
| Field | Description |
|----------------|----------------------------------------|
| element_info | Information about the element |
| epoch_data | A structure with fields of all the data|
| epoch_id | Epoch ID |
| spiketimes | Spike times in the local epoch clock |
| t0_t1 | Start and end times of the epoch in the|
| | local epoch clock |
| neuron_info | Extracellular spike info (if available)|
|----------------|----------------------------------------|
This function assumes that E is an element of type 'spikes'.
Example:
[ed, e] = ndi.example.fun.probe2elements(probe, 'type', 'spikes');
spikeStruct = element2spiketimes(e{1}, ed{1});