Geometric Numerical Integration implicit method and explicit method?
26 次查看(过去 30 天)
显示 更早的评论
dt = 0.02; t = 0.0:dt:4000.0; p = zeros(size(t)); q = zeros(size(t)); p(1)= 0; q(1)= 1; for ii = 1:(length(t)-1) p(ii+1)= p(ii) - dt*(-sin(q(ii))); q(ii+1)= q(ii) + dt*(p(ii)); end quiver(t,p,t,q)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!