Trouble solving ODE equation
2 次查看(过去 30 天)
显示 更早的评论
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).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/526414/image.png)
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
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?
回答(1 个)
Karan Nandankar
2021-3-1
Hi,
You can initiate solving this ODE by following this documentation from Symbolic Math Toolbox:
Regards,
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!