Question: How would i do the following example without using matlab's built in max() function and using a loop?
Define a function that takes as input parameters a function handle f, start and end values a and b, and a number of steps n. The function should compute and return the x and y values of the maximum of the function over the range a to b.
Provide the answer of this question and also explain why?