Pulling trials out of a set of time
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have data that was pre-processed and taken over a period of 24 minutes.Unfortunately the data I have the processed data's time vector is not in normal intervals. Within this 24 minute time frame occurred 36 trials with a specific layout.
I would like to separate this data by the trials, and by aspects within the trials. intro = 0-4 seconds task = 4-14.5 seconds response = 14.5 - 29.5 seconds transition = 29.5 seconds (repeat for all 36 trials)
any ideas on how i could go about completeing this?
I would think I would need a for loop and if loop and a variable that changes over time.
something like this?
introHold = 0;
taskHold = 4;
respHold = 14.5;
transHold = 29.5;
taskNum = 1;
for i = numel(data)
if data taskHold > data(i) > introHold
task(taskNum).intro = data(i)
else
Any ideas would be very helpful!
Thank you,
ML
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!