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!!
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook




Loading...
Similar Threads for Matrix ODE's MATLAB Date
Mathematica Summing matrix components Mar 22, 2018
Mathematica Eigenvectors 4x4 Matrix in Mathematica Aug 26, 2017
Matrix Systems of ODEs - Mathematica Mar 19, 2011
Matlab- solving odes for a matrix Sep 18, 2008
Solving a matrix valued ODE using dsolve in Matlab? Dec 4, 2007