matlab help
here's the values zombies2(0.005,0.0100,0.0900,0.0900,5,1) and I will attach a txt for the code @Lyrae
I am trying to replicate figure 3 http://mysite.science.uottawa.ca/rsmith43/zombies.pdf and hold on the code is coming... forgot to start my program
but my graph looks messed up !
the axis are fine, but the graph inside is a case of what just happened. And it's the infection being introduced into the basic model, so I had to use the S Z R model
@UsukiDoll: think the model should use αSR, instead of αSZ. So the equations on page 3 should read: Z' = βSZ + ζR - αSR and R' = δS + αSR - ζR As with any problem, it'd be useful to clarify the equations which make up the model before proceeding to model the distribution empirically.
oh I'll try that and see what happens after I eat dinner
OK
Eulers method is iterative, try smaller time steps as well: ie. dt = 0.1, 0.05, 0.01, 0.005, 0.001 zombies2(0.005,0.0100,0.0900,0.0900,5,dt) until you find an acceptable converge rate (graph looks nice)
Join our real-time social learning platform and learn together with your friends!