Question: Q 2 ) USE MATLAB, PLEASE MAKE CODE COPYABLE Integrating real data The temperature in F along a metal bar has been measured and
Q USE MATLAB, PLEASE MAKE CODE COPYABLE
Integrating real data
The temperature in along a metal bar has been measured and the results tabulated in Table
where is the distance from the left end of the bar in meters. Note that due to test limitations
the data was not collected at evenly spaced intervals.
Table : Measured temperature data of bar
a The theoretical temperature is given by Plot the theoretical
temperature as a smooth blue line and the measured data from the table red asterisk in a
single plot.
b Use one of the integration techniques we have studied to estimate the integral of the data.
Display the result using an fprinte statement with digits to the right of the decimal
point.
c Calculate the magnitude of the true percent relative error. The true value is the integral of
the theoretical temperature function. Display the result using an fprint statement with
digits to the right of the decimal point.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
