버전 (1.12 KB) 작성자: Matthew Kelly
4th-order Runge-Kutta integrator, fully vectorized.

다운로드 수: 392

업데이트 날짜: 2015/12/11

라이선스 보기

This is a simple implementation of a 4th-order, fixed-step, Runge-Kutta integrator. It is fully vectorized, which allows a large number of simulations to be carried out in parallel. It is designed to be used inside of optimization code.
% z = rk4(dyn,t,z0)
% This function (rk4) is used to perform a 4th-order Runge-Kutta
% integration of a dynamical system.
% dyn = handle of the form:
% dz = userFunc(t,z)
% t = [1 x nTime] vector of times, created by linspace
% z0 = [nState (x nSim)] matrix of initial states
% z = [nState (x nSim) x nTime ] matrix of trajectories

인용 양식

Matthew Kelly (2023). RungeKutta4 (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
Help CenterMATLAB Answers에서 Runge Kutta Methods에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보

Added a text function to show usage. Improved description.