Çó½âÈçÏÂ΢·Ö·½³Ìʱ£¬³öÏÖ¾¯¸æ
Warning: Failure at t=4.893789e-005. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.738623e-019) at time t.
ÎÞ·¨µÃµ½ÒªÇóµÄ½âÇø¼ä£¬Çë°ïæ·ÖÎöһϡ£
°´ÕÕÄãµÄ·½³Ì×éÐÎʽºÍ³õʼÌõ¼þ°ïÄã¼ò»¯ÁËÏ£¬Á½ÈýÐоͿÉÒÔ½â¾öÎÊÌâÁË¡£
---------------------------------------------------------------------------------------------------
function main
fun = @(t,Y)[Y(2);(1+Y(2)^2)/Y(1)+9.4597e+08*(1+Y(2)^2)^1.5];
[t,Y] = ode45(fun,[0.4894e-4 0],[0.0001 15.2571]);
plot(Y(:,1),Y(:,2))
---------------------------------------------------------------------------------------------------
µ«½á¹ûͬÑùÓöµ½ÎÊÌâWarning: Failure at t=4.893789e-005. Unable to meet integration tolerances
without reducing the step size below the smallest value allowed
(1.738623e-019) at time t.
-------------------------------------------
·ÖÎö£º
1. °´ÌáʾÐèÒª¼õСstep size
2. ¼ì²éÄãµÄ·½³ÌºÍ³õÖµÌõ¼þ£¬Èç¹û¶¼Ã»ÎÊÌ⣬ÄÇô¼´Ê¹warningÌáʾ£¬Ò²²»±íʾһ¶¨ÊÇ´íÎó