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

2) A technician tested two temperature probes by inserting their probes in boili

ID: 3714008 • Letter: 2

Question

2) A technician tested two temperature probes by inserting their probes in boiling water. recording the readings, removing and drying the probes, and repeating the process. The results are shown below, giving temperature reading in degrees Celsius Probe 1 Probe 2 88.5 95.5 85.5 102 87 102.5 87.5 99.5 86 90.5 89.5 91.5 91 104.5 By writing a MATLAB code, find each of the followings (a) What is the mean of each probe? (b) What is the median of each probe? (c) What is the variance of each probe? (d) What is the standard deviation of each probe?

Explanation / Answer

MATLAB CODE

probe1=[88.5 85.5 87 87.5 86 89.5 91] % Create and display vector of probe1
probe2=[95.5 102 102.5 99.5 90.5 91.5 104.5] % Create and display Vector of probe1


fprintf(" Mean of Probe1: %f",mean(probe1)) % Display mean of probe1 using mean() function
fprintf(" Mean of Probe2: %f ",mean(probe2)) % Display mean of probe2 using mean() function
fprintf(" Median of Probe1: %f",median(probe1)) % Display median of probe1 using median() function
fprintf(" Median of Probe2: %f ",median(probe2)) % Display median of probe2 using median() function

fprintf(" Variance of Probe1: %f",var(probe1)) % Display variance of probe1 using var() function
fprintf(" Variance of Probe2: %f ",var(probe2)) % Display variance of probe2 using var() function
fprintf(" Standard Deviation Probe1: %f",std(probe1)) % Display standard deviation of probe1 using std() function
fprintf(" Standard Deviation of Probe2: %f ",std(probe2)) % Display standard deviation of probe2 using std() function

OUTPUT

probe1 =

88.500 85.500 87.000 87.500 86.000 89.500 91.000

probe2 =

95.500 102.000 102.500 99.500 90.500 91.500 104.500


Mean of Probe1: 87.857143
Mean of Probe2: 98.000000

Median of Probe1: 87.500000
Median of Probe2: 99.500000

Variance of Probe1: 3.809524
Variance of Probe2: 30.916667

Standard Deviation Probe1: 1.951800
Standard Deviation of Probe2: 5.560276

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