Question: Write a MATLAB function that will take as input a function f of a vector x, a lower limit xl, and an upper limit xu

Write a MATLAB function that will take as input a function f of a vector x, a lower limit xl, and an upper limit xu and return the (x,y) coordinates of both the maximum and minimum y values in the domain. The function should return an error if xl is greater than or equal to xu. The first line of the function should be: function [xmin, ymin, xmax, ymax]-minmax(f,xl,xu)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
