Matrix of ODE's in MATLAB

  • MATLAB
  • Thread starter juef
  • Start date
  • #1
27
0
Hey all,

Consider the system [tex]X' = f(X)[/tex], where [tex]X[/tex] is a square matrix. I would like to solve this system with MATLAB, but all of its solvers require [tex]X[/tex] to be a column vector.

Of course, it would be possible to rewrite [tex]X'[/tex] and [tex]f(X)[/tex] as column vectors, but I guess some efficiency would be lost. It would also be a lot of pain to do :grumpy:

So, does anyone know of a simpler way to do such a thing? Thank you!!
 

Answers and Replies

  • #2
214
0
It's not a pain to do with the reshape command.
 
  • #3
27
0
:shy: Why on earth didn't I think of that? You can't possibly imagine how much that just helped me! Thank you very much!!
 

Related Threads on Matrix of ODE's in MATLAB

  • Last Post
Replies
2
Views
2K
Replies
0
Views
4K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
8
Views
5K
  • Last Post
Replies
13
Views
3K
Replies
5
Views
43K
  • Last Post
Replies
4
Views
2K
Replies
5
Views
6K
Replies
1
Views
1K
Top