Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matrix of ODE's in MATLAB

  1. Aug 2, 2006 #1
    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!!
     
  2. jcsd
  3. Aug 2, 2006 #2
    It's not a pain to do with the reshape command.
     
  4. Aug 3, 2006 #3
    :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!!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Matrix of ODE's in MATLAB
  1. ODE in Matlab (Replies: 3)

  2. ODE matlab (Replies: 2)

Loading...