Borrar filtros
Borrar filtros

How to combine two ode systems?

3 visualizaciones (últimos 30 días)
Bo Wang
Bo Wang el 5 de Jun. de 2015
Respondida: Torsten el 17 de Jun. de 2015
Assume my colleague and I have developed two ode functions, respectively as:
  • Function1: dx1=a1*x1+u1;
  • Function2: dx2=a2*x2+u2;
For the integrated system, we know that u1=x2 and u2=x1 (i.e., feedback connection), but we don't want to explicitly rewrite a new function as:
  • Function: dx=ax where a=[a1 1;1 a2].
So, is there a way to apply ode solvers on Function1 and Function2 respectively to get the integrated system's responses? Thanks in advance.
  1 comentario
Alka Nair
Alka Nair el 17 de Jun. de 2015
Hi, Have you come across the function DSOLVE that solves a system of differential equation. I am not quite sure if I understand your question right, but please refer to the following link if you want to solve a system of differential equation:

Iniciar sesión para comentar.

Respuestas (1)

Torsten
Torsten el 17 de Jun. de 2015
You could solve the complete system (two differential and two algebraic equations):
dx1=a1*x1+u1;
dx2=a2*x2+u2;
0=u1-x2;
0=u2-x1;
Use the mass matrix option of the ODE integrators to add the algebraic equations.
Best wishes
Torsten.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by