Setting time intervals in a cell array all to the same 0 to 5 second time interval

2 ビュー (過去 30 日間)
Krispy Scripts
Krispy Scripts 2016 年 6 月 13 日
コメント済み: Krispy Scripts 2016 年 6 月 16 日
I am trying to find the spiking rates over 5 second intervals of time. I have the spike times of intervals in a cell array(spk). I am wondering if it is possible or if any of you clever coders might know of a way to set all of the intervals and spike times contained within those intervals to 0 to 5 second interval. For example, the spike time of the first interval in the cell is 59.031, so put that as 0.031. The next 59.0599 to 0.0599. Is this possible?
  3 件のコメント
Krispy Scripts
Krispy Scripts 2016 年 6 月 13 日
My apologies on lack of clarity. These spike times are times when recorded neurons are firing, so it is just the time stamp. I have this five second window of time during which a behavior is occurring that I would like to see the spiking rate or amount of spikes happening per time over this five seconds. I attached an image that I hope will show exactly what I am trying to do once I have what I am asking here. I can calculate for this, but I need two things. First I need all of the spike times in those intervals in cell arrays, like I have in the spks.mat attached. The second is that I need all of the spike times in the five second window relative to each other, so when all the intervals start, no matter what time that becomes time 0. The time of these stamps is continually happening so I need a way to take these five second intervals and set all of the first. My apologies again because I did not attach the interval matrix, but I attached it here. So the spike times from the intervals are in the spks.mat, but I need to set the beginning of the interval as time 0 for all of these interval's spike times? Does this make it more clear? My apologies again for the lack of clarity from my first post and in advance if this does not help.
Image is not supported, but here is a google link to peri-stimulus histograms and raster plots of spiking rates over time periods.
https://www.google.com/search?q=peristimulus+time+histogram&espv=2&biw=1440&bih=799&tbm=isch&imgil=6hjVLtLAq8dHMM%253A%253BZ9MK_7n9kWdEtM%253Bhttp%25253A%25252F%25252Fsifter.org%25252F~simon%25252Fjournal%25252F20070705.html&source=iu&pf=m&fir=6hjVLtLAq8dHMM%253A%252CZ9MK_7n9kWdEtM%252C_&usg=__iwWPyv19x2QpzDl_1OZ4qQxlw_Y%3D&ved=0ahUKEwjp1tTlkabNAhXCRSYKHQN0BOsQyjcINA&ei=Xj9fV-mvNMKLmQGD6JHYDg#imgrc=6hjVLtLAq8dHMM%3A
Krispy Scripts
Krispy Scripts 2016 年 6 月 16 日
Does this at all help?

サインインしてコメントする。

回答 (1 件)

Andrew Bliss
Andrew Bliss 2016 年 6 月 13 日
Not quite sure what you're trying to do, but wouldn't mod help? E.g.
mod(59.031,1)

カテゴリ

Help Center および File ExchangeElectrophysiology についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by