~~~~~~~~~Please use MATLAB to answer the following questions and provide input a
ID: 3814375 • Letter: #
Question
~~~~~~~~~Please use MATLAB to answer the following questions and provide input and outputs. Thanks!~~~~~~~~~~
4. The following equations are used to estimate altitude by starting altitude: 1000 measuring the temperature of boiling water. Use the equations Increment: 200 to create a table that looks like this: ending altitude: 1000 Altitude Temperature p 29.92101 6 8753x10 6h), 1000 212.35 212.28 -800 TT 49.16 limp +44.932 600 212.21 [note that the term Inp represents natural log of p and NOT l*n*p] 400 212.14 212.08 200 Run your code as shown and generate the output shown 212.01 200 211.94 400 211.87 211.81 600 211.74 800 1000 211.67Explanation / Answer
printf("starting altitude : -1000 ")
printf("Increment : 200 ")
printf("ending altitude : 1000 ")
printf("altitude Temperature ")
for a = -1000 : 200 : 1000
printf("%d %d ",a,49.161 * log(29.921 * (1 - 6.8753 * a/ 1000000)) + 44.932)
end
=======================> OUTPUT <===============================
starting altitude : -1000
Increment : 200
ending altitude : 1000
altitude Temperature
-1000 212.345
-800 212.278
-600 212.211
-400 212.144
-200 212.076
0 212.009
200 211.941
400 211.873
600 211.805
800 211.737
1000 211.669
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.