function spikePlot(spikeMat)

spikeLocs=find(spikeMat);

[x,y]=ind2sub(size(spikeMat),spikeLocs);

coords=[x y];

disp(size(coords))

figure;for k=1:size(coords,1),hold on; rectangle('Position',[coords(k,2) coords(k,1)-.125 2 .25],'Curvature',[1 1],'FaceColor','k');end;

