Question: Please use script in matlab program Instructions: Submit 2 script files with the names specified. Do not use live scripts. Get the desires output, and

Please use script in matlab program Instructions: Submit 2 script files withPlease use script in matlab program

Instructions: Submit 2 script files with the names specified. Do not use live scripts. Get the desires output, and for each question submit the screenshot of output along with the script file. 1. (25 pts) three_one.m: The Beaufort Wind Scale is used to characterize the strength of winds. The scale uses integer values and goes from a force of 0, which is no wind, up to 12, which is a hurricane. The following script first generates a random force value. Then, it prints a message regarding what type of wind that force represents, using a switch statement. You are to re-write this switch statement as one nested if-else statement that accomplishes the same thing. You may use else and/or elseif clauses. Ranforce = randi ([0, 12]); Switch ranforce Case 0 disp ( 'There is no wind') Case {1,2,3,4,5,6} disp('Ther is a breeze') Case {7,8,9} disp('This is a gale') Case {10,11} disp('This is a storm') Case {12} disp('Hello, Hurricane!') end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!