COULD YOU PLEASE SOLVE (4.4) BY (MATLAB)? THANK YOU Problems 141 (a) Extract the
ID: 2074263 • Letter: C
Question
COULD YOU PLEASE SOLVE (4.4) BY (MATLAB)?
THANK YOU
Problems 141 (a) Extract the scores and student number for student 5 into a row vector named student 5 (b) Extract the scores for Test 1 into a column vector named test l (c) Find the standard deviation and variance for each test. (d) Assuming that each test was worth 100 points, find each student's final total score and final percentage. (Be careful not to add in the student (e) Create a table that includes the final percentages and the scores from (f) Sort the matrix on the basis of the final percentage, from high to low Consider the the thermocouple data in Table P4.3: number.) the original table. (in descending order), keeping the data in each row together. (You may need to consult the help function to determine the proper syntax.) 4.3 Table P4.3 Thermocouple Data Time Thermocouple 1 Thermocouple 2 Thermacouple 3 (hr) °F 0 84.3 86.4 85.2 87.1 83.5 84.8 85.0 85.3 85.3 85.2 82.3 84.7 83.6 90.0 89.5 88.6 88.9 88.9 90.4 89.3 89.5 88.9 86.7 87.6 88.3 85.3 80.3 82.4 83.4 85.4 86.3 85.3 89.0 87.3 87.2 4 12 16 18 20 89.5 89.4 89.8 24 (a) Create a column vector named times going from 0 to 24 in 2-hour increments. (b) Your instructor may provide you with the thermocouple temperatures in a file called thermocouple.dat, or you may need to create a matrix named thermocouple yourself by typing in the data. (c) Combine the times vector you created in part (a) with the data from ther- mocouple to create a matrix corresponding to the table in this problem. (d) Recall that both the max and min functions can return not only the maximum values in a column, but also the element number where those values occur. Use this capability to determine the values of times at which the maxima and minima occur in each column. 4.4 Suppose that a file named sensor.dat contains information collected from a set of sensors. Your instructor may provide you with this file, or you may need to enter it by hand from the data in table P4.4. Each row contains a set of sensor readings, with the first row containing values collected at 0 seconds, the second row containing values collected at 0.5 seconds, and so on. (a) Read the data file and print the number of sensors and the number of seconds of data contained in the file. (Hint: Use the size function don't just count the two numbers.)Explanation / Answer
load sensor.dat;
t=sensor(:,1); %puts first column in t
x1=sensor(:,2); %puts second column in x1
x2 =sensor(:,3); %puts third column in x2 and so on.. and at the end,
end
end
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.