EBK MATLAB: AN INTRODUCTION WITH APPLIC
EBK MATLAB: AN INTRODUCTION WITH APPLIC
5th Edition
ISBN: 8220102007642
Author: GILAT
Publisher: YUZU
Question
Book Icon
Chapter 4, Problem 1P
To determine

To write:

A MATLAB program in a script file that calculates heat index HI.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The calculated value of heat index is 122.

Explanation of Solution

Given T=90°F

R=90%

The equation used by national weather service for the calculation of heat index HI

is given by,

HI=42.379+2.04901523T+10.14333127R6.83783×103T25.481717×102R2+1.22874×103T2R+8.5282×104TR21.99×106T2R2

Where,

T is the temperature in degrees F.

R is the relative humidity in integer percentage.

Substitute the given values of temperature and relative humidity in the above equation.

HI=42.379+2.04901523×90+10.14333127×0.96.83783×103×9025.481717×102×(0.9)2+1.22874×103×902×0.9+8.5282×104×90×(0.9)21.99×106×902×(0.9)2=122

Write the MATLAB program that calculates the heat index HI using the given values of temperature and relative humidity.

MATLAB Code:

%MATLAB Program that calculates the heat index by using the given values of temperature and relative humidity.

Temp = input('Enter the temperature in deg F: ');%Temperature

RH = input('enter the relative humidity in percentage: ');%Relative humidity

HI = -42.379+2.04901523*Temp+10.14333127*RH-0.22475541*RH*Temp-6.83783*10^-3*Temp^2-5.481717*10^-2*RH^2+1.22874*10^-3*Temp^2*RH+8.5282*10^-4*Temp*RH^2-1.99*10^-6*Temp^2*RH^2;

fprintf('\nThe Heat Index Temperature is: %.0f\n',HI)

Save the MATLAB Script with the name, Chapter4_29864_4_1P.m in the current folder.

Execute the script by typing the script name at the command window to get the code that gives the relative heat index by using the given values of temperature and relative humidity.

Result:

EBK MATLAB: AN INTRODUCTION WITH APPLIC, Chapter 4, Problem 1P

Conclusion:

Therefore, the calculated value of heat index is 122.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Please help me with this question on statistics
Please help me with this statistics question
Please help me with the following statistics questionFor question (e), the options are:Assuming that the null hypothesis is (false/true), the probability of (other populations of 150/other samples of 150/equal to/more data/greater than) will result in (stronger evidence against the null hypothesis than the current data/stronger evidence in support of the null hypothesis than the current data/rejecting the null hypothesis/failing to reject the null hypothesis) is __.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman