Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Question about differential equations solving

Status
Not open for further replies.

Settler

Structural
May 22, 2010
88
0
0
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?
 
Replies continue below

Recommended for you

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.
Back
Top