Question: Windchill Function Background: In an earlier activity, you computed wind chill-the temperature it teels like based on wind conditions. Given the actual temperature T (in
Windchill Function Background: In an earlier activity, you computed wind chill-the temperature it teels like based on wind conditions. Given the actual temperature T (in degrees Fahrenheit) and wind speed W (in miles per hour) the windchill can be approximated by the following equation windchill 35.7 06T-35.7WO.16+0.43TWO.16 For example, if the temperature is 32 degrees F and the wind speed is 10 mile per hour, the wind chill is 23.1871 degrees F. As another example, for T-10 and W-20, the wind chill is-9.0101 degrees F Assignment Write a MATLAB function Windchill that takes parameters T and W, and returns the wind chill. Steps: 1. modify the body of the function to compute wind chill based on T and W 2 instead of returning the result (the common practice in other programming languages), assign the result to variable we 3 call the function from the script window to test it click "Run Function" to call the function and output the results 5 repeat steps 3 and 4 in order to test the function with different parameters When you are ready to submit for grading, scroil down and click the "Submit button and your function will be tested. You must pass all test cases to receive credit for this exercise Your Function Save C Reset MATLAB Documentation 1% given temperature T and wind speed w, returns what temperature it feels like: 2 function wc Windchill(T, W) 3 WC1. 4 end Code to call your function C Reset 1% test your function here: 2l Windchil1(32. 10) Trouble with lab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
