added spike_AR.m