for finding a,b,c the most compatible with the model
Is this for a class? We cannot help you with homework questions on this forum.
nope i just wanna use julia but i don’t know how
Please read about how to make it easier to help you.
Asking for help on forums is a skill, and we can’t help you unless you give more information and follow the instructions in that post.
function f(du, u, h, p, t)
a, b,c, τ = p ⌛ = h(p, t - τ, idxs = 1) du = u * (1 - u - (a * ⌛ + b)*exp(-c*⌛))
u0 = [0.008]
τ = 7
h(p, t; idxs = 1) = 0.008
a = 0.517;
b = 0.988;
p = [a, b,c,τ]
tspan = (8.0, 23.0)
prob = DDEProblem(f, u0, h, tspan, p, canstant_lag = [τ])
sol = solve(prob,saveat=1)
I wanna transform vir to the same dimension of temp_sol
Post quoted code by enclosing code blocks in triple-backticks :
```julia function f(x, y) x + y end ```
This will highlight syntax and use a monospace font.
Just transpose it and set
saveat to the right time points? (saveat = 16:23 if I’m not mistaken?)