find the solutions of h(x)=(x^8+P(x))^2 which give local minimum (fminsearch).....any help?
Show older comments
i dont know what function i have to write and also when i write xmin=fminsearch(.....) what i must write inside the space??
2 Comments
What is P(x) in your example? The easiest way to do this is to call an anonymous function:
x0 = 0; %for example
h = @(x)((x^8 + P(x))^2);
x = fminsearch(h,x0);
But this depends on what P(x) is here. If fminsearch is not required, you might consider something like lsqnonlin instead.
andreas tziolas
on 8 Jan 2016
Accepted Answer
More Answers (0)
Categories
Find more on Spline Postprocessing 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!