plot for fmincon with multiple value of parameter
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Shashank Prasanna
el 8 de Jul. de 2013
I posted the answer in your previous questions here:
4 comentarios
Shashank Prasanna
el 9 de Jul. de 2013
You will find all that information for customization right here:
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Performance en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!