필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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

댓글을 달려면 로그인하십시오.

답변 (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 CenterFile Exchange에서 Electrophysiology에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by