bleeck@3: % This external file is included as part of the 'aim-mat' distribution package bleeck@3: % (c) 2011, University of Southampton bleeck@3: % Maintained by Stefan Bleeck (bleeck@gmail.com) bleeck@3: % download of current version is on the soundsoftware site: bleeck@3: % http://code.soundsoftware.ac.uk/projects/aimmat bleeck@3: % documentation and everything is on http://www.acousticscale.org tomwalters@0: function sig=generatefromspiketrain(sig,st) tomwalters@0: tomwalters@0: vals=zeros(size(getvalues(sig))); tomwalters@0: times=time2bin(sig,st); tomwalters@0: tomwalters@0: maxval=length(vals); tomwalters@0: selecttimes=times(find(times>0 & times