Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

3 The distinction between microeconomics and macroeconomics.

Answered: 1 week ago

Question

2 The role of economic theory in economics.

Answered: 1 week ago