Having trouble with the spike triggered average
Ältere Kommentare anzeigen
I keep getting empty matrices when trying to determine a spike triggered average. Below is my code. Can anyone help??
spkr=[NaN,spikes(1:end-1)]; trig_spk=find(spikes>0 & spkr<=0); x1=1:length(spikes);
y2=zeros(1,length(trig_spk)); figure;plot (x1,spikes,'g',trig_spk,y2,'.') dog=[]; cat=[]; for i=1:length(trig_spk) try dog(i,:)=binarized( trig_spk(i) : trig_spk(i)+4000-1); cat(i,:)=spikes(trig_spk(i) : trig_spk +4000-1); end; end end;
Antworten (4)
Star Strider
am 16 Mär. 2015
0 Stimmen
I keep getting empty matrices too, because I don’t have your data.
Care to let us know what your ‘spikes’ data are?
Holly Hunsberger
am 16 Mär. 2015
0 Stimmen
2 Kommentare
Star Strider
am 16 Mär. 2015
When you post it, will your data also have a time variable?
Image Analyst
am 16 Mär. 2015
After you click "Choose file..." remember to click the "Attach file" button or else it won't attach.
Also, read this and fix your post: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Holly Hunsberger
am 17 Mär. 2015
0 Stimmen
1 Kommentar
Star Strider
am 17 Mär. 2015
No data file yet.
Kategorien
Mehr zu Electrophysiology finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!