Question: 2) Given a list of numbers, write Matlab code to find the maximum and mini- mum values. For example, if your list is [3,1,5,7,4,9, 2,

2) Given a list of numbers, write Matlab code to find the maximum and mini- mum values. For example, if your list is [3,1,5,7,4,9, 2, 6, 2], then the output should be Numbers are: 31 5 7 4 9 2 6 2 max is 9 min is 1 The beginning of your code should be continuing with our example) clear; v = [3 1 5 7 4 9 2 6 2]; You may not use Matlab's commands max or min or sort or anything simi- lar. Also, your code needs to work for any list, not only for lists of length 9 (as in the example)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
