How to remove message from fsolve result
古いコメントを表示
%Following code giving results with message
clc
clear
options = optimset('Display','off');
f=@(x)[3*x(1)^3+x(1)^2-18; x(2)^3-5*x(2)^2+10];
x = fsolve(f,[0.001 0.001])
%Results and message as follows:
Equation solved.
fsolve completed because the vector of function values is near zero as measured by the default value of the function tolerance, and the problem appears regular as measured by the gradient.
x =
1.7125 1.7556
採用された回答
その他の回答 (2 件)
Oleg Komarov
2011 年 3 月 6 日
Then include options in the call to fsolve:
x = fsolve(f,[0.001 0.001],options)
Oleg
Fazlollah
2023 年 2 月 25 日
use this line of code for fsolve options
options = optimset('Display','off');
1 件のコメント
Walter Roberson
2023 年 2 月 26 日
The original poster was already doing that. The problem was that they were not passing the options to fmincon.
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!