% % rasterplot(stimes,r) % plots the wth rastergram of stimes % r: rastergram index; % % % Author: Jean-Marc fellous % fellous@salk.edu function rasterplot(stimes,r) ntrials=size(stimes,1); cla; hold on; if r>0 & r<31 % hardcoded limit: here all 'spiketimes' arrays have exactly 30 rastergrams I=1; for i=1:ntrials s=1; while(stimes(i,r,s) ~=0 & s