You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This code works very similarly to the ode45, ode23, etc family except it uses the fixed step RK4 algorithm. The inputs are the function handle, the time span, initial conditions and timestep. The extraparameters variable can be used to pass extra information to the derivatives routine rather than using globals. next is a number between 1 and 100 in order to notify the user of the simulations progress. If the variable quat = 'Quat' the simulation will normalize the quaternions assuming the states are (x,y,z,q0,q1,q2,q3,u,v,w,p,q,r).
Cite As
Carlos Montalvo (2026). Fixed Step Runge-Kutta (https://uk.mathworks.com/matlabcentral/fileexchange/50061-fixed-step-runge-kutta), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (2.84 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
