From: Dave on
I want to solve an ODE in matlab or simulink, its a 3-element Windkessel model and I have already derived the ode:



(1+R1/R2)*(Q(t)+CR1*Q'(t)=(P(t)/R2)+C(P'(t))

I have all the constants (R1, R2, and C) and Also I have an input of P(t) (its a square wave input)

My question is how can I manipulate equation to make it solvable by ode23? I can't isolate what I'm solving for (q(t)) because I have its derivative present also. Can someone please help? The same question goes for simulink.. can I do it in there also?

Thanks in advance.

Dave
From: Torsten Hennig on
> I want to solve an ODE in matlab or simulink, its a
> 3-element Windkessel model and I have already derived
> the ode:
>
>
>
> (1+R1/R2)*(Q(t)+CR1*Q'(t)=(P(t)/R2)+C(P'(t))
>
> I have all the constants (R1, R2, and C) and Also I
> have an input of P(t) (its a square wave input)
>
> My question is how can I manipulate equation to make
> it solvable by ode23? I can't isolate what I'm
> solving for (q(t)) because I have its derivative
> present also. Can someone please help? The same
> question goes for simulink.. can I do it in there
> also?
>
> Thanks in advance.
>
> Dave

So P(t) (and thus P'(t) (obtainable by a numerical
approximation)) are known ?
Then you can isolate Q'(t) and you will get a
standard ordinary differential equation to solve for
Q(t).

Best wishes
Torsten.