Pulling trials out of a set of time

조회 수: 2 (최근 30일)
Mary
Mary 2014년 1월 23일
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개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by