Skip to content

Instantly share code, notes, and snippets.

@micaleel
Last active March 12, 2021 19:04
Show Gist options
  • Save micaleel/5eb3729e73290a82d85ac689f61997cd to your computer and use it in GitHub Desktop.
Save micaleel/5eb3729e73290a82d85ac689f61997cd to your computer and use it in GitHub Desktop.
% solvers for DEs in ode.m
% TODO Insert relevant values into `range` and `initial_conditions`
% NOTE initial_conditions is a vector (ordered collection) of input values that will
% unpacked in ode.m file into the X, L, S, N, and H variables respectively.
range = [1:50]
initial_conditions = [600, 3, 0, 3, 3]
# Use ode45 solver
[time_solution, var_solution] = ode45(@ode_sys, range, initial_conditions)
% Plot solutions, if necessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment