plot for fmincon with multiple value of parameter
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Shashank Prasanna
am 8 Jul. 2013
I posted the answer in your previous questions here:
4 Kommentare
Shashank Prasanna
am 9 Jul. 2013
You will find all that information for customization right here:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Performance finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!