Solving Riccati differential equation with time variable matrix

4 views (last 30 days)
Given: differential equation -P(t)AP(t) + Q(t) = dP(t)
A is known and constant Q is known for all time steps
Now I want to solve this equation to get P. How can i achieve this by using solver like ode45? I do not know how to include the time variable matrix Q in the solving algorithm.
Thanks in advance

Answers (1)

Orion
Orion on 16 Oct 2014
Hi,
look example3 in ode45
your Q is the same as g in this example
  4 Comments
Orion
Orion on 16 Oct 2014
it shoudn't change anything, even if you don't have a formula.
you have a vector Q (n sample), and you just use this vector.
Stephan
Stephan on 16 Oct 2014
Edited: Stephan on 16 Oct 2014
ok thank you.
If there are further problems, I will write them down here :)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!