How can i find max & min of this 2 variables function?
1 view (last 30 days)
Show older comments
Hi friends,i have a problem,How can i find max & min of this 2 variables function with matlab? can you help me please?!
f(x1,x2)=cos(x1+x2)*sin(x2)+(3*cos(x1+x2)-6*cos(x2))*cos(x2)*sin(x2)
2 Comments
Answers (1)
Bjorn Gustavsson
on 16 Jul 2012
Have a look at the chebfun project: http://www.mathworks.se/matlabcentral/fileexchange/23972-chebfun. There are brilliant functions there to do that for this type of problem. Brilliant meaning that it doesn't get stuck in local minima like fminsearch et al. might.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!