Assume that the function y(x) = f (x) + g(x) has a single local minimum in the
interval 0 <= x <= 1, at x = xm. Write
(i) a function M-file (called funct.m) and
(ii) a MATLAB statement (using the fminbnd command)
that together will compute xm and the value of y at xm.
Comments
Leave a comment