cedance
Advanced Member level 2
Hi,
i programmed a model in matlab which requires solving differential equations numerically. i used the commands
options = odeset('AbsTol',1e-20,'RelTol',1e-4);
[t y] = ode15s(@odes, [t1 t2], icval1, options);
and wrote the eqns. I have attached the results where i expect a difference. In the image 1.jpg, there are 2 graphs. However, if you see the second graph, it starts from its initial value (concentration) and then starts to reduce (tremendously) before it increases... and i dont have an explanation or expectation of this result. The top one seems pretty straight and is what it should look like. I also have attached them separately and showed my expected result in the figure 2.jpg for better clarity. Does anyone know if this could be an implication of numerical solutions to Diff. eq??
thank you,
cedance.
i programmed a model in matlab which requires solving differential equations numerically. i used the commands
options = odeset('AbsTol',1e-20,'RelTol',1e-4);
[t y] = ode15s(@odes, [t1 t2], icval1, options);
and wrote the eqns. I have attached the results where i expect a difference. In the image 1.jpg, there are 2 graphs. However, if you see the second graph, it starts from its initial value (concentration) and then starts to reduce (tremendously) before it increases... and i dont have an explanation or expectation of this result. The top one seems pretty straight and is what it should look like. I also have attached them separately and showed my expected result in the figure 2.jpg for better clarity. Does anyone know if this could be an implication of numerical solutions to Diff. eq??
thank you,
cedance.