Question: Using matlab! Coding problems: HW8_2 According to Charles's law for an ideal gas, at constant volume, a linear relationship exists between the pressure, p, and
Using matlab!

Coding problems: HW8_2 According to Charles's law for an ideal gas, at constant volume, a linear relationship exists between the pressure, p, and temperature, T. In an experiment, a fixed volume of gas in a sealed container is submerged in ice water (T-O"c). The temperature of the gas is increased in ten increments up to T-100"C, and the pressure of the gas is measured at each temperature. The data from the experiment is: T(C)0 20 30 1.05 40 1.07 50 1.09 70 1.17 80 1.21 90 1.24 100 1.28 atm 0.94 0.96 1.14 Fit a straight line to the data, a) by using linear regression formulas. b) by using polyfit Are the coefficients the same from the above two methods? Now plot the data and the best fit line. Extrapolate the data to determine the absolute zero temperature, To. This is the point where the line crosses the y-axis Include this point on your plot, and print this answer to the screen using fprintf. Is it close to -273.15C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
