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
A3 m long cantilever ABC is built-in at A, partially supported at B, 2 m from A, with a force of 10 kN and carries a vertical load of 20 kN at C. A uniformly distributed bad of 5 kN/m is also applied between A and B. Determine (a) the values of the vertical reaction and built-in moment at A and (b) the deflection of the free end C of the cantilever, Develop an expression for the slope of the beam at any position and hence plot a slope diagram. E = 208GN / (m ^ 2) and 1 = 24 * 10 ^ - 6 * m ^ 4
7. Consider the following feedback system with a proportional controller. K G(s) The plant transfer function is given by G(s) = 10 (s + 2)(s + 10) You want the system to have a damping ratio of 0.3 for unit step response. What is the value of K you need to choose to achieve the desired damping ratio? For that value of K, find the steady-state error for ramp input and settling time for step input. Hint: Sketch the root locus and find the point in the root locus that intersects with z = 0.3 line.
Create the PLC ladder logic diagram for the logic gate circuit displayed in Figure 7-35. The pilot light red (PLTR) output section has three inputs: PBR, PBG, and SW. Pushbutton red (PBR) and pushbutton green (PBG) are inputs to an XOR logic gate. The output of the XOR logic gate and the inverted switch SW) are inputs to a two-input AND logic gate. These inputs generate the pilot light red (PLTR) output. The two-input AND logic gate output is also fed into a two-input NAND logic PBR PBG SW TSW PLTR Figure 7-35. Logic gate circuit for Example 7-3. PLTW Goodheart-Willcox Publisher gate. The temperature switch (TSW) is the other input to the NAND logic gate. The output generated from the NAND logic gate is labeled pilot light white (PLTW).
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
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,