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!
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
Text book image
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Text book image
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
Text book image
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
Text book image
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,