Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started