How do I solve a dr/dt equation?

3 views (last 30 days)
sal goodman
sal goodman on 13 Jun 2016
Commented: Roger Stafford on 13 Jun 2016
I just need an example of how to solve basic integrals to get the r's at different timesteps. I have an equation:
How do I solve it at t=0 for example, if it has r's on both sides?
  1 Comment
Roger Stafford
Roger Stafford on 13 Jun 2016
What you have there is a differential equation, which is different from a problem in integration. In matlab these can be solved numerically using one of the ‘ode’ functions (ordinary differential equations.) See for example:
http://www.mathworks.com/help/matlab/ref/ode45.html
You will need to furnish an initial value for ri.

Sign in to comment.

Answers (0)

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!