フィルターのクリア

reducing the StepTolerance in order to avoid MATLAB stopping integration

1 回表示 (過去 30 日間)
KIPROTICH KOSGEY
KIPROTICH KOSGEY 2019 年 10 月 22 日
コメント済み: KIPROTICH KOSGEY 2020 年 7 月 12 日
Hi,
Please, i would like to reduce the StepTolerance in order to avoid the following message:
Warning: Failure at t=6.848966e-01. Unable to meet integration
tolerances without reducing the step size below the smallest value
allowed (2.433242e-15) at time t.
This is my script:
%initial conditions
y0=[0.02352;0.00048;0.0288;0.00432;0.216;0.1104;0.1104;2;2;2;55;50;0.5];
h=0.0006944444;
tSpan=[0 535];
options = optimoptions(options,'StepTolerance',1e-20);
[tSol, ySol]=ode23tb(@(t, y) MBBRFun4(t,y), tSpan, y0, options);
Please, let me know why this is not working.
Thanks in advance

回答 (1 件)

Sai Bhargav Avula
Sai Bhargav Avula 2020 年 2 月 18 日
Hi,
I think this question(same question) is answered in the following link : https://www.mathworks.com/matlabcentral/answers/487243-how-do-i-change-steptolerance

カテゴリ

Help Center および File ExchangeSPICE files についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by