Question: MATLAB Make a script called hw7q2.m that does the following: a) Read in the hw7data.csv file using the command csvread('hw7data.csv') and saves the output to
MATLAB
Make a script called hw7q2.m that does the following: a) Read in the hw7data.csv file using the command csvread('hw7data.csv') and saves the output to a matrix called hw7data. b) Create an 8x2 matrix called hw7avg that consists of participant ID numbers (first column) and the proportion correct for that participant (second column). c) Call the modelMem function for each participant, using speechRates = 1:0.25:4 and decayRates = 0.1:0.2:0.9, along with that participants proportion correct. Store the output of each participants modelMem call (the n x 2 matrix of parameter values) inside a cell array called hw7subjFits. In other words, each cell of hw7subjFits should be an n x 2 matrix of all model parameter pairs that perfectly predict that participants proportion correct. d) In comments, describe which pairs of parameter values are the most common (i.e., occur most frequently across all 8 participants).

a 00000 23456789 10 1 2 3 4 5 6 7 8 9 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 40 4 4 4 44 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 60 663 64 65 66 6 6 9 70-2 a 00000 23456789 10 1 2 3 4 5 6 7 8 9 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 40 4 4 4 44 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 60 663 64 65 66 6 6 9 70-2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
