Bug fminbnd not working
Show older comments
fplot(@(x) x*(sin(x))^2*cos(x),[-2*pi 2*pi]);
[xMin1 fvalmin1] = fminbnd('-x*(sin(x))^2*cos(x)', -6, 6)
returns xMin1 = 1.0954
fvalmin1 = -0.3963
How is this possible, look at the plot?
3 Comments
madhan ravi
on 20 Jan 2019
Why do you say it's a bug?
Stephen Wilkerson
on 20 Jan 2019
Stephen Wilkerson
on 20 Jan 2019
Accepted Answer
More Answers (0)
Categories
Find more on Analog Devices ADALM1000 Support from Data Acquisition Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
