How to solve ODE with Simulink?
2 次查看(过去 30 天)
显示 更早的评论
I have an Ordinary Differential Equation as follow: dv/dt-av^2-b=0 where a and b are constants how to solve this equation using Simulink?
0 个评论
回答(1 个)
Fangjun Jiang
2011-10-19
Your equation can be written as dv/dt=a*v*v+b.
Drag an Integrator block, the input is dv/dt, the output is v, use Constant block, Product block and Sum block to construct the equation and then you can run the simulation to solve the equation.
The solution is only numerical. You can vary the value of a, b and the initial value of v to see the effect.
2 个评论
Fangjun Jiang
2011-10-19
That probably means that based on your value of a, b, initial value of v and the simulation step size, the simulation is unstable, or it's a fact that the value of v is becoming ruminatively large. What is your a, b, initial v and simulation step size?
另请参阅
类别
在 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!