(i) Display the IDs of the participants, their average reaction times in the Day-time tests, and their average reaction times in the Night-time tests: Night-time 806.5 ParticipantID Day-time 9001 862.5 9002 585.5 860 9003 607.5 840.5 9004 657.5 718.5 9005 479.5 701 9006 599.5 749 9007 701.5 782 9008 633.5 774 9009 721 715.5 9010 382.5 484.5 9011 661.5 748 9012 450 869 1) Sort the rows of the above matrix according to the Day-time reaction times in ascending order, and display the sorted results as follows: Sorted on average Day-time RT (ms) in ascending order: 9010 382.5 484.5 9012 450 869 9005 479.5 701 9002 585.5 860 9006 599.5 749 9003 607.5 840.5 9008 633.5 774 9004 657.5 718.5 9011 661.5 748 9007 701.5 782 9009 721 715.5 9001 862.5 806.5 (k) Sort the rows of the above matrix according to the Night-time reaction times in descending order, and display the sorted results as follows:
(i) Display the IDs of the participants, their average reaction times in the Day-time tests, and their average reaction times in the Night-time tests: Night-time 806.5 ParticipantID Day-time 9001 862.5 9002 585.5 860 9003 607.5 840.5 9004 657.5 718.5 9005 479.5 701 9006 599.5 749 9007 701.5 782 9008 633.5 774 9009 721 715.5 9010 382.5 484.5 9011 661.5 748 9012 450 869 1) Sort the rows of the above matrix according to the Day-time reaction times in ascending order, and display the sorted results as follows: Sorted on average Day-time RT (ms) in ascending order: 9010 382.5 484.5 9012 450 869 9005 479.5 701 9002 585.5 860 9006 599.5 749 9003 607.5 840.5 9008 633.5 774 9004 657.5 718.5 9011 661.5 748 9007 701.5 782 9009 721 715.5 9001 862.5 806.5 (k) Sort the rows of the above matrix according to the Night-time reaction times in descending order, and display the sorted results as follows:
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question

Transcribed Image Text:Consider the following table that contains the IDs of 12 participants and their crash-
avoidance reaction times (in milliseconds) on four tests. Two tests were done during the day in
daylight and two tests were done at night with reduced lighting.
Crash-avoidance Reaction Time (ms)
Participant
Day
Night
ID
Test 1
Test 2
Test 3
Test 4
9001
887
838
765
648
9002
680
491
953
767
9003
662
553
985
696
9004
789
526
581
770
9005
508
451
688
714
9006
566
633
856
642
9007
656
747
846
718
9008
776
491
944
604
9009
770
672
814
617
9010
333
432
591
602
9011
730
593
796
700
9012
496
404
846
892
rt.xisx in the
This question has multiple parts. Create output to MATLAB's command window exactly as shown,
except replacing xxxx with actual values, as instructed. You may use the disp command, but not the
fprintf command
If you have difficulty with the alignment or formatting of numeric output, add the command format
shortg near the top of your solution.
In your solution, put the following MATLAB statements at the beginning of each part:
% Question 5<x> solution
disp('----- q5<x> solution -----');
Instead of "<x>", substitute the question part ("a" for part a, "b" for part b, and so on).

Transcribed Image Text:(i) Display the IDs of the participants, their average reaction times in the Day-time tests, and their
average reaction times in the Night-time tests:
ParticipantID
Day-time
862.5
Night-time
9001
806.5
9002
585.5
860
9003
607.5
840.5
9004
657.5
718.5
9005
479.5
701
9006
599.5
749
9007
701.5
782
9008
633.5
774
9009
721
715.5
9010
382.5
484.5
9011
661.5
748
9012
450
869
(i) Sort the rows of the above matrix according to the Day-time reaction times in ascending order,
and display the sorted results as follows:
Sorted on average Day-time RT (ms) in ascending order:
9010
382.5
484.5
9012
450
869
9005
479.5
701
9002
585.5
860
9006
599.5
749
9003
607.5
840.5
9008
633.5
774
9004
657.5
718.5
9011
661.5
748
9007
701.5
782
9009
721
715.5
9001
862.5
806.5
(k) Sort the rows of the above matrix according to the Night-time reaction times in descending order,
and display the sorted results as follows:
Sorted on average Night-time RT (ms) in descending order:
9012
450
869
9002
585.5
860
9003
607.5
840.5
9001
862.5
806.5
9007
701.5
782
633.5
599.5
9008
774
9006
749
9011
661.5
748
9004
657.5
718.5
9009
721
715.5
9005
479.5
701
9010
382.5
484.5
(1) Display the ID of the participant who has the fastest (i.e., lowest) average reaction time in the
Day-time tests as follows:
Participant with the fastest average Day-time RT is:
XXXX
Obtain the answer by extracting the relevant element from the sorted matrix. The same applies to
the following step.
(m) Display the ID of the participant who has the slowest (i.e., highest) average reaction time on the
Night-time tests as follows:
Participant with the slowest average Night-time RT is:
XXXX
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 3 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY