Question: Problem #2 (10 points) With the following pressure-volume data, you would like to use MATLAB to determine the work (W) delivered in Joules to expand

Problem #2 (10 points) With the following pressure-volume data, you would like to use MATLAB to determine the work (W) delivered in Joules to expand the gas from 1.19 mL to 4.5 mL. V (mL) 1.19 1.3 1.43 1.77 2.02 2.34 2.79 3.44 P(atm) 4.9 4.5 3.7 3.3 2.5 1.58 4.5 1.3 4.1 2.9 2.1 1.7 w = [PdV Determine the work required using: a) Trapezoidal integration. Detail the work done in MATLAB to arrive at the solution (check your units!). b) Fitting the data to the form: P = AVE. For this first linearize the data accordingly. Fit the data with MATLAB's "polyfit" function to find A and B, and then integrate the form above using "integral." Detail the work done in MATLAB to arrive at the solution. For both parts display the entire program code used for your script created in MATLAB. Include your name as a comment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
