  Write an if/elseif/else section of code that produces the following logical behavior described in words: When the average of all of the numbers (in a vector) is less than 6, display the largest number in the vector. When the average is greater than 6 and at least one number is negative, display the smallest number in the vector. When the average is exactly 6, display the length of the vector (number of elements). If none of these conditions are met, display an appropriate message. Show the completed script file to your instructor 3. If a switch/case/otherwise structure (shown below) was used for unit conversion of an existing speed value, fill in the blanks. Demonstrate the working code in a MATLAB script file. 4. speed-input (‘Enter the speed in miles per hour: units-input (‘Enter the units you want speed converted to: ‘,’s'”) Show transcribed image text Write an if/elseif/else section of code that produces the following logical behavior described in words: When the average of all of the numbers (in a vector) is less than 6, display the largest number in the vector. When the average is greater than 6 and at least one number is negative, display the smallest number in the vector. When the average is exactly 6, display the length of the vector (number of elements). If none of these conditions are met, display an appropriate message. Show the completed script file to your instructor 3. If a switch/case/otherwise structure (shown below) was used for unit conversion of an existing speed value, fill in the blanks. Demonstrate the working code in a MATLAB script file. 4. speed-input (‘Enter the speed in miles per hour: units-input (‘Enter the units you want speed converted to: ‘,’s'”)