Commit fd2c21bc authored by lindnemi's avatar lindnemi
Browse files

this is how to save less data points

parent 04d44c23
......@@ -95,7 +95,7 @@ for sig in [10,5,2,1.0,0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2,0.1,0.05,0]
prob = ODEProblem(fhn_network!, x0, tspan, p)
@time sol = solve(prob, Tsit5(),reltol=1e-6, saveat=tspan[1]:.2:tspan[end]);
@time sol = solve(prob, Tsit5(),reltol=1e-6, saveat=90000:.2:100000);
#we only need the values for u from the sol
#u values are saved in indices 1,5,9,13,...
#sol is of the size 1508(377*4)*5001
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment