Home / Expert Answers / Mechanical Engineering / need-matlab-code-on-how-this-is-done-nbsp-write-a-matlab-function-program-der-4-x-y-which-pa362

(Solved): need matlab code on how this is done  Write a Matlab function program der \( 4(x, y) \) which, ...



need matlab code on how this is done 

Write a Matlab function program der \( 4(x, y) \) which, given the value of a function at five base points \( (x, y) \), uses
Write a Matlab function program der \( 4(x, y) \) which, given the value of a function at five base points \( (x, y) \), uses a fourth degree interpolating polynomial to evaluate the deriyasive of the function at the last base point. Use the Matlab utilities polyfit polydeand polyval o do this. Use this function program to solve the following problem: Calculate the enthalpy of vaporization \( \mathrm{h}_{\mathrm{g}} \) of water at \( 95^{\circ} \mathrm{C} \) to at least 5 significant figures from the Clapeyron equation \[ (d P / d T)_{s a t}=h_{f g} /\left(T v_{f g}\right) \] Here \( (d P / d T)_{\text {sat }} \) is the slope of the vaporization line, \( T \) is absolute temperature \( \left({ }^{\circ} K={ }^{\circ} \mathrm{C}+273.15\right) \) and \( v_{f g} \) is the difference in specific volume between saturated liquid and saturated vapor \( \left(v_{f g}=v_{g}-v_{f}\right) \). Use five equally spaced base points which includes the point at \( T=95^{\circ} \mathrm{C} \) and use a spacing between the base points of \( 5,10,15 \) and \( 20^{\circ} \mathrm{C} \). In each case, compare your calculated value of \( h_{f g} \) with that reported in the table and comment on the accuracy of your results.


We have an Answer from Expert

View Expert Answer

Expert Answer


MATLAB function script in text (der4.m) function dy = d
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe