Find minimum of single-variable function
1 view (last 30 days)
Hi, what expression is calculated by the following command in Matlab?
(a) f(x)=1-sin x^2 or (b)1-sin^2x.
I answered a) in my exercise, however I am not sure if this is correct. Can someone tell me if this is correct?
Adam Danz on 25 Jan 2021
[x,fval] = fminbnd(___)
gives you the (x,y) values at the minimum.
You could plug the x values into both of your options and the one that returns the matching y value is the correct function.