Question: MATLAB . (14 pts) Vector logic This problem refers to the following MATLAB variables representingencompassed 28 days. student subjects. Assume there are 150 student sleep
. (14 pts) Vector logic This problem refers to the following MATLAB variables representingencompassed 28 days. student subjects. Assume there are 150 student sleep study measurements for a group of ts in the cohort and the study encompassed 28 days. Variable name Contents is an array containing cohort got during each night of the study. The columns of hourssleep represent students, and the rows of hourssleep represent days in the study is a vector with an entry for each column of hoursSleep. The entry i male' for male subjects and 'female' for female subjects. is a vector with an entry for each column of hourssleep. The entry contains the section number of each student (1.2, or 3) in the study. is a vector with an entry for each row of hourssleep. The entry contains a 1 if the corresponding study day was a Saturday or a Sunday (weekend) the number of hours of sleep each student in the hoursSleep gender section weekend (2 pts) Draw a diagram of the hourssleep array, labeling the meaning and sizes of its rows and columns. (2 pts) Create a MATLAB variable that is the number of students in section 1. 2 pts) Create a MATLAB variable that has the total number of men in the cohort. 3 pts) Create a MATLAB variable containing only the sleep of the students of section 1. pts) Create a MATLAB variable that contains the average number of hours of sleep members of the rt got on the weekend. pts) Create a MATLAB variable that contains the number of times members of the cohort slept six or le
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
