Question
In the experiment, participants were shown a list of words. The words were presented for either 100 ms, 200 ms, 300 ms, or 500 ms
In the experiment, participants were shown a list of words. The words were presented for either 100 ms, 200 ms, 300 ms, or 500 ms (4 levels, within-subjects). The words are either common words like banana or more uncommon like jungle or aardvark (2 levels, within-subjects). There was a total of 96 words, presented in 3 different lists. Each list of words contained 32 words (16 common and 16 uncommon; within each of those sets of 16, 4 were shown for 100 ms, 4 for 200 ms, 4 for 300 ms, and 4 for 500 ms). Participants were shown one word at a time. After all words were presented, they had 5 minutes to type into the computer as many words as they could remember studying. Each participant repeated this procedure three times (i.e. once for each of the 3 lists of words). Below are the data from a single participant (note that each cell is out of a maximum possible 12 words4 words per condition * 3 lists):
Subject 1 100 ms 200 ms 300 ms 500 ms
Common Words 3 5 8 9
Uncommon Words 2 6 6 10
MATLAB
Write a script, memorydata.m to carry out the following:
a) First, create a matrix subj1data that stores the data for this subject (hard-code the data from the table above manually).
b) Plot the data using a line graph (plot function). Label the x- and y-axes. Create a title and a legend. There should be two lines, one for common, one for uncommon words. Save as subj1plot.jpg.
c) Create a new figure and plot that shows the data averaged across the two conditions (try running help mean to see what the mean function might be able to do). Again, label x- and y-axes, title the plot, and add a legend. (It may help to create a vector with the average for each time limit, and then plot the vector.) Save this plot as subj1plotAvg.jpg.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started