I cannot understand the fsolve output , and how to proceed

조회 수: 2 (최근 30일)
msh
msh 2013년 7월 4일
Hi
I am using the fsolve, and the output is the following
No solution found.
fsolve stopped because the size of the current step is less than the default value of the step size tolerance, but the vector of function values is not near zero as measured by the selected value of the function tolerance.
ans =
0.1317
It says that there is no solution in one hand, but the it gives the 0.1317 value on the other... i cannot make sense what is going on ! Can you please advice on this ? Many thanks
Safis

답변 (1개)

Walter Roberson
Walter Roberson 2013년 7월 4일
It gave the best answer it was able to find. But you had given limits on how far to look to find a good answer, and it had hit one of those limits, but it recognizes that what it was able to find is not a good solution.
You can ask it to look further by creating an options structure that gives a smaller allowed step size. But you would be advised to plot the function in the area near the answer it gave back and see visually what kind of difficulty is in the region.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by