Home > FMAToolbox > Data > AddSpikeTimes.m

AddSpikeTimes

PURPOSE ^

AddSpikeTimes - Add spike timestamps.

SYNOPSIS ^

function AddSpikeTimes(spikes)

DESCRIPTION ^

AddSpikeTimes - Add spike timestamps.

  USAGE

    AddSpikeTimes(spikes)

  SEE

    See also ThresholdSpikes.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function AddSpikeTimes(spikes)
0002 
0003 %AddSpikeTimes - Add spike timestamps.
0004 %
0005 %  USAGE
0006 %
0007 %    AddSpikeTimes(spikes)
0008 %
0009 %  SEE
0010 %
0011 %    See also ThresholdSpikes.
0012 
0013 
0014 % Copyright (C) 2012 by Michaƫl Zugaro
0015 %
0016 % This program is free software; you can redistribute it and/or modify
0017 % it under the terms of the GNU General Public License as published by
0018 % the Free Software Foundation; either version 3 of the License, or
0019 % (at your option) any later version.
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 % Parse parameters
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];

Generated on Fri 16-Mar-2018 13:00:20 by m2html © 2005