Randomize ITI

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Randomize ITI
#1
How to randomize the ITI time
Thanks
Reply
#2
Your state matrix should be in a MATLAB for loop that runs once each trial:


Code:
for currentTrial = 1:MaxTrials
    % Create a state matrix
    % Send and run  state matrix
end

You can then use MATLAB's rand() function to randomize an interval:

Code:
for currentTrial = 1:MaxTrials
thisInterval = rand*(largestInterval);
% Create a state matrix using thisInterval as the timer for one of the states
% Send and run state matrix
end

I hope this helps!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)