ode45を使用した時の刻み幅について
이전 댓글 표시
ode45を使用して微分方程式を解いてplotするとき、刻み幅を普通入れますが
入れなくてもplotされます。
その時の刻み幅はどのように決まっているのでしょうか?
下記ので刻み幅無しでも少し違った形状にはなりますがplotされました。
y0=10
h=(1/8)*pi%刻み幅
t=0:(1/8)*pi:(1/2)*pi
y=10*2*pi*cos(2*pi*t+1/2*pi)
[t,y] =ode45(@(t,y)10*2*pi*cos(2*pi*t+1/2*pi), t,y0);
plot(t,y,'-o');
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 数値積分と微分方程式에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!