ode45 won't produce te or xe

1 view (last 30 days)
Katherine
Katherine on 26 Apr 2014
Commented: Star Strider on 7 May 2014
I'm trying to run ode45 with events on a function (cancerEqsVaryBurden). The events script is critCells, and the main script is CancerModelFinite. I'm having trouble in the innermost for loop with getting ode45 to give xe or te. In my experience this has been caused by running through tspan without triggering an event, but that shouldn't be the case here. I can increase tspan as much as I want and it still throws the error.
Attached are the relevant scripts plus others to make the main code work.
Thanks for helping!

Accepted Answer

Star Strider
Star Strider on 26 Apr 2014
Your code didn’t post, but in your previous post, your ODE didn’t do anything that might trigger an ‘event’, like a zero-crossing.
When you plot the output of your ODE integration, does it look as though it should have triggered an event?
  33 Comments
Katherine
Katherine on 7 May 2014
Hm. In that case, I'm inclined to believe what my simulation is telling me, since my plot looked essentially the same, although I think checking actual data would be a good way of verifying. However, I think this entire model is developed using flawed assumptions, so I might actually tweak it a bit. That could be an interesting next project.
Thank you! I didn't know much about this field until now, but I think it's actually really interesting; I'll definitely continue to explore this and other papers (and maybe try some original modeling!).
If I do need help I'll definitely email you!
Thanks :)
Star Strider
Star Strider on 7 May 2014
I definitely agree. They actually made a number of simplifying assumptions that while necessary for a model of this sort, can lead to erroneous conclusions, that I believe they overstated. (It would be interesting to see if any clinical papers cited this one, or any similar papers by the same authors.) My modeling experiences are in physiological control, not oncology, but I found your project interesting.
As for doing your own simulations, if your university has a medical school, I suggest you talk with some clinical oncologists and oncology researchers to see what they suggest. They might have some ideas that you could simulate in your models, as well as data you could fit to your simulations to identify parameters. (Identifying models characterized by differential equations are relatively easy to do in MATLAB. I’ve done a fair amount of it.)
I get the impression that you did all this on your own volition and on your own time, as well as keeping up with your university studies. Your work on this project is graduate-level, and is truly impressive.
My e-mail is on my File Exchange profile.
My pleasure!

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!