Question: use loops, for loops or while loops in matlab 1) In a Surfing Competition, each judge gives a score in the range of 1 to

 use loops, for loops or while loops in matlab 1) "In

use loops, for loops or while loops in matlab

1) "In a Surfing Competition, each judge gives a score in the range of 1 to 10. The highest and lowest scores are cancelled, and the rest are averaged. The average is the score of the performance. Write a program that reads a vector with judges scores and outputs the average. Note that you need to determine the highest and lowest scores before excluding them in the computation." You are not allowed to use max, min and average functions from MATLAB. You should use loops to solve this problem. 2) Create a function that reads a matrix and uses loops to swap two columns. User should provide matrix of any size and indicate which columns are to be swapped. [12312312 3 ] switch columns 1 and 2 [213 2132 13]

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!