RungeKutta4

버전 1.1.0.0 (1.12 KB) 작성자: Matthew Kelly
4th-order Runge-Kutta integrator, fully vectorized.
다운로드 수: 419
업데이트 날짜: 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.
%
% INPUTS:
% 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
%
% OUTPUTS:
% z = [nState (x nSim) x nTime ] matrix of trajectories
%

인용 양식

Matthew Kelly (2026). RungeKutta4 (https://kr.mathworks.com/matlabcentral/fileexchange/54449-rungekutta4), MATLAB Central File Exchange. 검색 날짜: .

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

Added a text function to show usage. Improved description.

1.0.0.0