Question: Plot a function Exercise 5: Plot pressure (in Pa) vs density (in mol/m3) for R-134a at 380 K between molar densities of 1 mol/m and

 Plot a function Exercise 5: Plot pressure (in Pa) vs density

Plot a function Exercise 5: Plot pressure (in Pa) vs density (in mol/m3) for R-134a at 380 K between molar densities of 1 mol/m and 9,000 mol/m. Sketch this plot on the submission sheet. Label each axis and indicate the maximum values on each axis. "fplot" can be used to plot a function in Matlab. The general form is below: fplot (@("variable") "function", [A B]) where A and B are the lower and upper limits of the plot e.g. fplot (@(x) sin(x), [1 10]) Hints You are plotting pressure vs molar density but you need to input molar volume to your function. This is just the inverse. If in the example above, if I wanted to plot sin(1/x) vs x, it would look like: fplot (@(x) sin(1./x), [1 10]) If you get an error like "Warning: Function fails on array inputs. Use element-wise operators to increase speed." then you have forgotten to put dot somewhere (like in sin(1./x) above). Plot a function Exercise 5: Plot pressure (in Pa) vs density (in mol/m3) for R-134a at 380 K between molar densities of 1 mol/m and 9,000 mol/m. Sketch this plot on the submission sheet. Label each axis and indicate the maximum values on each axis. "fplot" can be used to plot a function in Matlab. The general form is below: fplot (@("variable") "function", [A B]) where A and B are the lower and upper limits of the plot e.g. fplot (@(x) sin(x), [1 10]) Hints You are plotting pressure vs molar density but you need to input molar volume to your function. This is just the inverse. If in the example above, if I wanted to plot sin(1/x) vs x, it would look like: fplot (@(x) sin(1./x), [1 10]) If you get an error like "Warning: Function fails on array inputs. Use element-wise operators to increase speed." then you have forgotten to put dot somewhere (like in sin(1./x) above)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To plot pressure versus molar density for R134a in MATLAB youll need to use the ideal gas equation o... View full answer

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!