Data Capture Practice Problems
Download the sample data set and load it.
- What variables does the file contain?
- What types of variables are these?
- What fields does data contain?
- What data types are these?
- What might each element of data represent?
At what time did the the fifth trial start?
What was the average of the payouts vector on the 500th trial?
Assign to a variable the value of the fourth cell of ev in the 400th element of data.
Capture in a vector the reaction times for all trials represented by data (field rt).
Capture in a cell array the event times for each trial (field evt). There should be one cell for each trial.
Capture in a matrix (one row for each trial) all payout values for all options in the experiment (field payouts). (Hint: vertcat.)
Make a variable containing the reaction times. Make a new vector containing only those reaction times that are within three standard deviations of the mean reaction time.