Solving differential equation in matlab

3 views (last 30 days)
Ramu Nair R
Ramu Nair R on 1 Apr 2018
Commented: Ramu Nair R on 16 Apr 2018
T - T_const = J dw/dt + Bw; where T depends on w and some other parameters.
I want to numerically solve for w. How to proceed.
Thanks

Answers (1)

Abraham Boayue
Abraham Boayue on 3 Apr 2018
Try matlab ode45 function or apply Renge Kutta method. You actually do have a simple equation that should be solved by either of the methods above.
  1 Comment
Ramu Nair R
Ramu Nair R on 16 Apr 2018
Thanks. I solved it using euler's method. I have another question: whether the solution that i obtained matches with real time. I want to have the same dynamics as in real time. How does the solution differ if i solve it by a different method.

Sign in to comment.

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!