saveNEVSpikes
saveNEVSpikes
Allows the user to save a modified version of the spike waveforms into a
NEV file. This can be very useful for those who want to save MATLAB
sorted or rethresholded NEV data back into the NEV file. It also re-saves
the other data in the original NEV file into the new NEV. A
Use saveNEVSpikes(spikeStruct, newFileName)
spikeStruct: The structure containing the spike data needed to be
saved. The structure format must match the one that
openNEV outputs.
spikeStruct.TimeStamp: contains all the timestamps
spikeStruct.Electrode: contains all the electrode #s
spikeStruct.Unit: contains all the sorted unit #s
spikeStruct.Waveform: Spike waveforms, containing 48 data
points
newFileName: The file name of the new NEV file.
DEFAULT: User will be prmpted for a file name.
Example 1:
saveNEVSpikes(spikeStruct, 'sortedNEV';
In the example above, the user will be prompted to select a NEV file.
The data stored in spikeStruct will be saved into sortedNEV alongside
the data in the user-selected NEV file. The new NEV will be saved as
sortedNEV.nev
Kian Torab
ktorab@blackrockmicro.com
Blackrock Microsystems
Version 1.2.1.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Version History
1.0.0.0: Initial Release.
1.2.0.0:
- Fixed a bug where the data saved incorrectly under the Windows OS.
- Sped up the processing significantly.
1.2.1.0
- Fixed a bug introduced in 1.2.0.0.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Validating the input argument