RungeKutta4

バージョン 1.1.0.0 (1.12 KB) 作成者: Matthew Kelly
4th-order Runge-Kutta integrator, fully vectorized.
ダウンロード: 414
更新 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 (2024). RungeKutta4 (https://www.mathworks.com/matlabcentral/fileexchange/54449-rungekutta4), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2012a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersRunge Kutta Methods についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

Added a text function to show usage. Improved description.

1.0.0.0