Borrar filtros
Borrar filtros

How do you integrate a set of matrix equations?

2 visualizaciones (últimos 30 días)
Jordan Falgoust
Jordan Falgoust el 25 de Jul. de 2015
Respondida: James Tursa el 26 de Jul. de 2015
I have a set of 4 matrix equations (corresponding to a set of 12 equations) that I would like to integrate with some matrix initial conditions [3 x 3]. I don't think something like ode45 could accomplish this, as the initial conditions must be an array.

Respuesta aceptada

James Tursa
James Tursa el 26 de Jul. de 2015
Reshape them as vectors to pass into ode45. Then in your derivative routine, reshape back to matrix form to do your matrix calculations. Then reshape the matrix result back to a vector to pass out as an output.

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by