Question: 3. (5 points) The Antoine equation is a model relating vapor pressure P to temperature T: The constants A, B, and C depend on the

3. (5 points) The Antoine equation is a model relating vapor pressure P to temperature T: The constants A, B, and C depend on the liquid, and P is the log of the pressure. We have gathered m data points (T, PL) for water: t=[0 3 6 9 12 15 18 21 24 27 301; P1 = log10( [26142 28277 30539 32934 35467 38148 40980 43977 47150 50514 54086]); We would like to find values of A, B, and C that create a best fit to our gathered data. The normal equations for this problem are nonlinear. We would need to solve the normal equations with Newton's method instead of a simple backslash operator. Good news: there's a built in function in MATLAB that will do it for us. Enter the data (copy and paste), and then enter the following commands: fun = @(x,tdata) x(1)-x(2)./ (tdatatx(3)); %defines the equation and parameters to- [100 100 1001; %sets an initial guess for the best fitting paramters tsol = lsqcurvefit (fun , to,t,P1) Write down the values of A, B, and C that give a best fit. Plot the data (marker) as well as the best fitting curve (solid curve)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
