Trouble solving ODE equation

조회 수: 2 (최근 30일)
Andrew Bickerdike
Andrew Bickerdike 2021년 2월 21일
답변: Karan Nandankar 2021년 3월 1일
Im having trouble trying to setup code to solve an ODE when I already have the equation to i(t) and I need to solve to get an equation for P(t).
i(t)=(29/25000)*((sin(pi*t))^13)*(cos((pi*t)-pi/10))
I have all the values for R2 R1 Cv and Lv.
Any help or advice would be very much appreciated.
Thanks.
  댓글 수: 4
Jan
Jan 2021년 2월 21일
Okay, now I see the equation for i(t) (maybe I have overseen if before).
Do you need a symbolic solution? Most equations do not have a closed form and numerical methods are needed for an integration.
Did you try to integrate the equation numerically already? Do you have some code?
Andrew Bickerdike
Andrew Bickerdike 2021년 2월 21일
Its true that I need a symbolic solution. And I have not tried to integrate the solution already as I do not know where to start when it comes to even solving something like this in MATLAB.
Thanks again.

댓글을 달려면 로그인하십시오.

답변 (1개)

Karan Nandankar
Karan Nandankar 2021년 3월 1일
Hi,
You can initiate solving this ODE by following this documentation from Symbolic Math Toolbox:
Regards,

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by