plot for fmincon with multiple value of parameter
8 views (last 30 days)
Show older comments
Does any one know how to plot optimal results w.r.t. the value of m, c below my optimisation problem.
Say, I need to plot m at x axis and x(1) at y axis.
f = @(x,m)(-m*x(1)-2*x(2)-x(1)*x(2))
for m=2:0.2:3
[x,fval]=fmincon(@(x)f(x,m),x0,[1,1],18,[],[],[0;0],[Inf;Inf])
end
Thanks
0 Comments
Accepted Answer
Shashank Prasanna
on 8 Jul 2013
I posted the answer in your previous questions here:
4 Comments
Shashank Prasanna
on 9 Jul 2013
You will find all that information for customization right here:
More Answers (0)
See Also
Categories
Find more on Graphics Performance 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!