Question: It is a MATLAB problem. Can you please solve them asap? 1. Consider a gas in a piston-cylinder device in which the temperature is held

It is a MATLAB problem. Can you please solve them asap? 1.It is a MATLAB problem. Can you please solve them asap?

1. Consider a gas in a piston-cylinder device in which the temperature is held constant. As the volume of the device was changed, the pressure was measured. The volume and pressure values are reported in the following table: (65) Volume (m3) 1 2 3 Pressure (kPa) when I = 300 K 2494 1247 831 623 499 416 4 5 6 a. Use linear interpolation to estimate the pressure when the volume is 3.8 m. (5) b. Use cubic spline interpolation to estimate the pressure when the volume is 3.8 m. (5) C. Use linear interpolation to estimate the volume if the pressure is measured to be 1000 kPa. (5) d. Use cubic spline interpolation to estimate the volume if the pressure is measured to be 1000 kPa. (5) e. Pressure was measured at T = 500 K resulting in the table under this problem. Use all the data to predict what pressure you would have at 400 K for all 6 volumes using linear interpolation. Plot all linear interpolations of all 3 on the same graph. (15) f. Do e once more, using cubic spline, and calculate the absolute value of the difference between the two. (10) g. Using the original data, make a vector of pressure/volume pairs at 300 K from V = 1-6 m3 with an interval of 0.2 and linear interpolation (5). h. Using 4 subplots, map the first 4 orders of polynomial fits for T = 300 K. Put the original data as disconnected circles. Put the data from g on the graph as disconnected x marks. (15) Volume (m) 1 2 3 Pressure (kPa) when T = 500 K 4157 2078 1386 1039 831 693 4 5 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!