Solving matrix differential equation in Simulink
15 views (last 30 days)
Show older comments
Benjamin chasnov
on 13 Apr 2015
Answered: Sebastian Castro
on 13 Apr 2015
Hi all,
Is there a way to solve a matrix differential equation in Simulink? X'= A X + F(t) with forcing function F(t)?
Ben
0 Comments
Accepted Answer
Sebastian Castro
on 13 Apr 2015
Sure you can! You can use the Integrator block to go from X' to X. Depending on the dimension of your A matrix (N-by-N), you can specify the initial conditions in the Integrator block as an N-by-1 vector. The rest is just setting up the math around that.
The screenshot below is a simple example where N = 2:
- Sebastian
0 Comments
More Answers (0)
See Also
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!