how can i plot this code into a banana solutiongraph?

options = optimoptions(@fminunc,'Display','iter','Algorithm','quasi-newton');
[x,fval,exitflag,output] = fminunc(fun,x0,options);
%%thank you so much

回答 (1 件)

Alan Weiss
Alan Weiss 2020 年 3 月 24 日

0 投票

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 件のコメント

risky amalia
risky amalia 2020 年 3 月 25 日
yes i tried that, but the code is just for show the value of optimization, not to plot into grap
Alan Weiss
Alan Weiss 2020 年 3 月 25 日
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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2015b

タグ

質問済み:

2020 年 3 月 23 日

コメント済み:

2020 年 3 月 25 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by