(Solved) : Write Matlab Function Named Top5temps Function One Input Two Return Values Input List Temp Q44000797 . . .
Write a MATLAB function named top5_temps
- The function will have one input and two return values
- The input will be a list of temperatures recorded every minutein an electric arc furnace (for at least 6 minutes)
- The first return value of the function should be the number ofdatapoints in the list (number of minutes of data)
- The second return value should be a single value that is theaverage temperature for the 5 highest temperatures.
Notes:
- Example Test Case:
[num, avg] =top5_temps([1850, 1807, 1900, 1845, 1945, 1913]);
results in num=6 and avg =1890.6 - DO NOT include test cases.
- There is a built-in command to sort in descending order
Expert Answer
Answer to Write a MATLAB function named top5_temps The function will have one input and two return values The input will be a list…
OR