Info

This question is closed. Reopen it to edit or answer.

Setting up a matrix for ODE45

1 view (last 30 days)
Donald
Donald on 3 May 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
So I need to analyze the following system using ODE45:
dc1/dt = -k21c1 + k12c2 + f(t) dc2/dt = k12c1 - k12c2
f(t) for 0<t<B = R f(t) for B<t<P = 0
How would I go about writing a function from this for ODE45 to run. I'm fine doing it except for the wave function described by f(t). I'm not sure how to check the value of t and get it to return a value

Answers (0)

Community Treasure Hunt

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

Start Hunting!