NeuroNexus Technologies, Inc. ©2014
| 655 Fairfield Court, Suite 100, Ann Arbor, Michigan USA
Telephone: +1.734.913.8858 | Fax: +1.734.786.0069 |
SOFTWARE
Upsampling Waveform Data
NeuroNexus provides an m-file for upsampling waveform data by a factor of two:
upsample2x.m.
Following is an example of upsampling amplifier
data from the previous file from from 20 kS/s to 40 kS/s:
>> [t_amplifier_2x, amplifier_data_2x] = upsample2x(t_amplifier, amplifier_data);
Upsampling waveforms by 2X...
10% done...
20% done...
30% done...
40% done...
50% done...
60% done...
70% done...
80% done...
90% done...
100% done...
Done! Elapsed time: 11.7 seconds
>> plot(t_amplifier_2x, amplifier_data_2x(1,:))
>>
Users may type
help upsample2x
at the MATLAB prompt for more information on this function.
To save disk space, users may wish to sample amplifiers at a lower rate and then upsample data to achieve a higher time resolution for spike sorting
algorithms, for example. This m-file uses cubic spline interpolation to perform the upsampling.
p.26