I'm a beginner at this so this is making no sense. I need a code that steps through x values from xMin and xMax with step size, calculates the value of f(x) and keeps track of the largest y value and the corresponding x value. At the end, use disp() and string() to print findings as such: yMax = 1.23 at x = 4.56. There needs to be a "for loop" and maybe "if" Any help would be appreciated!
MATLAB: Finding largest y value with corresponding x value
homeworkmax y value
Best Answer