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

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 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.

MATLAB function script in text (der4.m) function dy = d

Live Sessions

Online Lab Report Help

Online Project Report Help

Online Assignment Help

Essay Writing Help

CPM Homework Help

Mortgage Calculator

Electrical Engineering

Civil Engineering

Chemical Engineering

Electronics and Communication Engineering

Mathematics

Physics

Chemistry

Software Works/ Computer Science

Other Subjects

100% Correct Solutions

24/7 Availability

One stop destination for all subject

Cost Effective

Solved on Time

Plagiarism Free Solutions

Confidentiality