Differential equations

Solve ordinary differential equations numerically with ode45, ode23, ode15s, integral, trapz and the other numerical functions you already know.

  • Your existing .m models run as written
  • Systems of any size; switch from ode45 to ode15s when a problem is stiff
  • Free to try, with no license server to manage
  • Run in your browser with nothing to install, on your desktop, or sweep parameters across every core with parfor
Download RunMat

Explore the RunMat runtime

The Lorenz attractor, solved with ode45 and drawn by RunMat in 3-D from the saved analysis study
The Lorenz system, solved with ode45 and drawn by RunMat. Drag to rotate it.

Why use RunMat for differential equations

Free for your own models

A model runs on any machine with RunMat installed, or in the browser, with no license server to reach. ode45, ode23, ode15s and integral are part of the RunMat runtime, free for individuals, education, research and smaller companies.

Runtime

Sweep hundreds of cases on every core

A serial loop over hundreds of parameter sets or initial conditions keeps one core busy while the rest sit idle. Wrap it in parfor and the solves run across every core with the same results at any worker count, and the same script runs on a cluster as written.

Parallel

Compare runs without solving again

Rerunning a slow model just to compare two parameter sets wastes the time it took to solve them. Each run keeps its figures, variables and code, so earlier solutions open as they were.

Desktop app

Hand a model to a colleague

A colleague can run the same .m file in the browser with nothing to install, or open the project on the desktop and edit the model with you at the same time.

Collaboration

ODE and integration functions

Solve initial-value problems

Integrate a function

Integrate sampled data

Differentiate sampled data

Find crossings and extremes

Examples

Prey and predator populations over time beside their closed orbit in the phase plane, rendered by RunMat

Predator and prey

Lotka-Volterra time history and its closed orbit.

Step size against time for ode45 and ode15s on the Van der Pol equation at mu = 1000, rendered by RunMat

A stiff problem

Step sizes of ode45 and ode15s on Van der Pol.

A damped oscillation solved with ode45 inside its exponential decay envelope, rendered by RunMat

Damped oscillator

ode45 against the closed-form solution.

Susceptible, infected and recovered fractions of a population over 160 days, rendered by RunMat

SIR epidemic

Susceptible, infected and recovered over 160 days.

The flight path of a projectile with quadratic drag, rendered by RunMat

Projectile with drag

Range from interpolating the ground crossing.

exp(-x^2) and its cumulative area from cumtrapz, rendered by RunMat

Area under a curve

integral against trapz on the same function.

Try it on your own data

Download RunMat
Read the docs