0001 function AddSpikeTimes(spikes)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 global DATA;
0022 if isempty(DATA),
0023 error('No session defined (did you forget to call SetCurrentSession? Type ''help <a href="matlab:help Data">Data</a>'' for details).');
0024 end
0025
0026
0027 if ~issamples(spikes,'#2'),
0028 error('Incorrect spikes (type ''help <a href="matlab:help AddSpikeTimes">AddSpikeTimes</a>'' for details).');
0029 end
0030
0031 DATA.spikes = [DATA.spikes;spikes];