Question: I need this in a matlab script file, like an m file. This would help me to understand it a lot. We know a thermometer
I need this in a matlab script file, like an m file. This would help me to understand it a lot. We know a thermometer tells us the ambient temperature. However, we also know that depending
on other conditions, like humidity or wind velocity, the "feels like" temperature will be different.
The wind chill temperature, in is the temperature you feel on your exposed skin when it is
cold.
The equation for wind chill apparent temperature when is given by:
Where is the wind chill apparent temperature, is the ambient temperature in and is the
wind speed in mileshour
The equation for the heat index is determined as follows when :
Where is Heat Index apparent temperature, is ambient temperature is Relative Humidity
and The function output should be rounded to
the nearest tenth degree.
If the temperature is between and the apparent temperature is the ambient temperature.
Write an m file function with two inputs and one output for the "feels like temperature". The
function should be named "feelslike.m The first input to the function needs to be
temperature in and the second needs to be wind speed in mph if the temperature is less than
or humidity in if the temperature is greater than The m file should then calculate and
output the apparent temperature. Example output is shown in Figure to test your function.
ike and wind speed
ike and not used
ike and humidity
Figure : Wind Chill Script Input and Output Format
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
