Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The formula i am looking for is the formula to find the density of the liquid using total pressure surface pressure and height. it is
The formula i am looking for is the formula to find the density of the liquid using total pressure surface pressure and height. it is supposed to be made into a function in matlab. the code presented is what i have and i am not sure what i did wrong.
Solution 22:O of 1 test passed Submitted less than a minute ago | ID: 6616579 | Size: 22 1 % Write your problem statement here 3% Input Variables: 4 % Pt- Total pressure [atm] 5% p-s - surface pressure [atm] 6 % H - Height [ft] 8% Outputs: 9 % rho - Density [kg/m^3] 10 11% Other Variables: 12 % g- Gravity [m/s^2] 13 14% Write your entire function code below here (Including header) 15 function [rho] -RQ16-18(Pt,P. SH) % The order of input variables should be Total Pressure, surface Pressure, and Height 16 17% Constants 18 g-9.81 19 20 % calculations 21 rho= (P t-P s)/(H Fix This Solution Assessment: Incorrect X Test density The value you calculated for the density of the fluid is incorrect. Please check your codeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started