Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about differential equations solving

Status
Not open for further replies.

Settler

Structural
Joined
May 22, 2010
Messages
88
Location
US
Hello everyone,

when I have a differential equation of the type of:

y'+a*y=g(x)+a*q(x)

how can I solve that in MatLab?
 
Are you trying to solve this symbolically or numerically? For the former use dsolve. For the later I'd try ode45 (assuming you have initial values).
 
Convert your DE into Runge Kutta form or state space form. Then you can use ode45 or ode23 ect. as Brad suggested.
The form you wrote is a little odd. y'=dy/dx I assume. If that's the case you can simple integrate it by hand and use matlab to manipulate the end result.

[peace]
Fe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top