Question: (b) Display the following in the command window: 5. (15 points) Consider the following table that contains the IDs of 10 participants and their response

(b) Display the following in the command window: 5. (15 points) Consider the following table that contains the IDs of 10 participants and their response times in seconds) on five tests. There are two experiments, Experiment 1 and Experiment 2, with Tests 1 and 2 belonging to Experiment 1 and Tests 3 to 5 belonging to Experiment 2: | Experiment 2 Test 4 8.69 11.11 8 Participant ID 701 702 703 704 705 706 707 708 709 710 6.97 Experiment 1 Test 1 Test 2 8.62 9.87 8.20 9.99 5.67 6.54 6.45 6.76 7.65 8.12 7.89 11.04 11.23 12.34 12.34 12.98 10.54 8.47 12.34 1 1.23 The response times on five tests of all the participants are: Experiment i Experiment 2 ParticipantID Testi Test2 Test3 Test4 Test 5 701.0000 8.6200 9.8700 11.2300 8.6900 10.1300 702.0000 8.2000 9.9900 8.0300 11.1100 8.7000 703.0000 5.6700 6.5400 7.6500 6.9700 8.5600 704.0000 6.4500 6.7600 7.1200 7.0300 6.9200 705.0000 7.6500 8.1200 7.0900 9.3400 6.5400 706.0000 7.8900 11.0400 10.2800 11.1200 10.6000 707.0000 11.2300 12.3400 9.5600 11.5400 9.1900 708.0000 12.3400 12.980010.9800 9.9900 12.3400 709.0000 10.54008 .4700 9.9600 8.4100 9.8200 710.0000 12.3400 11.2300 12.3400 13.1100 12.8900 Test 3 11.23 .03 7.65 7.12 7.09 10.28 9.56 10.98 9.96 12.34 Test 5 10.13 8.70 8.56 6.92 6.54 10.60 9.19 12.34 9.82 12.89 7.03 9.34 11.12 11.54 9.99 8.41 13.11 (c) Compute the average response time for each test over all the participants. Display the following to the command window: The average response time for Tests 1, 2, 3, 4, and 5 are: 9.0930 9.73409 .4240 9.7310 9.5690 The above data are stored in an Excel file named response time.xlsx. Download this file from the course Moodle and place it in your working directory. Write a MATLAB program (a2q5.m) to do the following in the specified order: (a) Use MATLAB's xlsread command to read the participant IDs and response times in the file response_time.xlsx. Read the data into a matrix RT. Do not type the values into the matrix
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
