How to solve Differential Equation in Simulink Model

4 views (last 30 days)
Hi, How to write this model into simulink :
{ dv/dt = -4.5 - 0.42v - 0.334v^2 }
I was unable how to write when model include 0.334v^2.
Someone pls help me.
tq...

Accepted Answer

Arnaud Miege
Arnaud Miege on 16 May 2011
Use the Math Function block, and select square as the function. Once you have calculated dv/dt, you can then use the integrator block to calculate v and feed it back to the RHS of the equation.
HTH,
Arnaud

More Answers (1)

Rizuwan Mustaffa
Rizuwan Mustaffa on 11 Aug 2011
tq....Arnauld, sorry for late reply....

Categories

Find more on General Applications in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!