MATLAB Answers

how can i plot this code into a banana solutiongraph?

6 views (last 30 days)
risky amalia
risky amalia on 23 Mar 2020
Commented: Alan Weiss on 25 Mar 2020
options = optimoptions(@fminunc,'Display','iter','Algorithm','quasi-newton');
[x,fval,exitflag,output] = fminunc(fun,x0,options);
%%thank you so much

  0 Comments

Sign in to comment.

Answers (1)

Alan Weiss
Alan Weiss on 24 Mar 2020
Perhaps what you are asking relates to this example:
If so, then open the example and use the attached output function. If not, then please ask again.
Alan Weiss
MATLAB mathematical toolbox documentation

  2 Comments

risky amalia
risky amalia on 25 Mar 2020
yes i tried that, but the code is just for show the value of optimization, not to plot into grap
Alan Weiss
Alan Weiss on 25 Mar 2020
The attached output function plots into the graph. You have to open the example to be able to access the bananaout output function.
Alan Weiss
MATLAB mathematical toolbox documentation

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2015b

Translated by