Question: Please provide the MATLAB codes as written in question. thank you for your effort and will rate surely! HW week 4 1. Write the function


HW week 4 1. Write the function called fn_speedconv which converts the wind speed from mph to Knots and km/h. 1 Knots = 1.152 mph 1 mph = 1.609 km/h 2. The Beaufort Wind Scale (see table. 1)is used to characterize the strength of winds. The scale uses integer values and goes from a force of O, which is no wind, up to 12, which is a hurricane. Write the script called Beaufort WindScale which convert the wind speed from mph to Knots (and km/h) and prints a message regarding what type of wind that Beaufort Wind Scale Force represents by using either if-elseif or switch statement. Wind converted to Knots should be rounded to show the integer. Display the wind speed in Knots and km/h also. 3. Run the script Beaufort WindScale and find the class of the wind when the wind speed is 65 mph. Submit: Beaufort WindScale.m, fn_speedconv.m and Command Window history of 3 in diary (.txt) Table 1 Beaufort Wind Scale Force Wind (Knots) Classification 0 31 Calm 1 1-3 Light Air Light Breeze 2 4-6 3 7 - 10 Gentle Breeze 4 11 - 16 Moderate Breeze 5 17-21 Fresh Breeze 6 22-27 Strong Breeze 7 28 - 33 Near Gale 8 34 - 40 Gale 9 41 - 47 Strong Gale 10 48 - 55 11 56 - 63 Storm Violent Storm Hurricane 12 64 + Submit : -fn_speedconv.m -BeaufortWindScale.m -Command Window history of 3 in diary (.txt), .doc (.docx) or .pdf Please make sure that all the command, comment and document should be written by English formatted files. Try to "round" the wind when you convert the wind speed, then find the wind type
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
