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

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

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!