Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

4.3 Consider the the thermocouple data in Table P4.8: Table P4.3 Thermocouple Da

ID: 1885654 • Letter: 4

Question

4.3 Consider the the thermocouple data in Table P4.8: Table P4.3 Thermocouple Data Time Thermocouple 1 Thesmocspte 2 Thermocouple 3 (hr) o F oF 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 0 2 4 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 89.1 89.5 89.4 89.8 10 12 14 20 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.

Explanation / Answer

clear all
clc
format short
times=[0:2:24]';
thermo1=[84.3 86.4 85.2 87.1 83.5 84.8 85 85.3 85.3 85.2 82.3 84.7 83.6]';
thermo2=[90 89.5 88.6 88.9 88.9 90.4 89.3 89.5 88.9 89.1 89.5 89.4 89.8]';
thermo3=[86.7 87.6 88.3 85.3 80.3 82.4 83.4 85.4 86.3 85.3 89 87.3 87.2]';
thermoc=[thermo1 thermo2 thermo3];
thermocouple=[times thermo1 thermo2 thermo3]
[M,I1]=max(thermoc);
[B,I2]=min(thermoc);
M %maximum values in each column
B %minimum value in each column
maxima=times(I1) %times of maximum values in hr
minma=times(I2) %times of minimum values in hr

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote