Express vector of linear combinations as matrix product

4 visualizaciones (últimos 30 días)
Cameron Gregory
Cameron Gregory el 18 de Abr. de 2021
Respondida: Mahesh Taparia el 21 de Abr. de 2021
I have a column vector of symbolic linear combinations such as
How can I convert it to the form of a matrix product like

Respuestas (1)

Mahesh Taparia
Mahesh Taparia el 21 de Abr. de 2021
Hi
You can use diff function to express the differentials. For example, in your case
syms x(t) y(t)
a=5;
b=6;
c=7;
d=8;
eqns = [a b;c d]*[diff(x);diff(y)];
For more information, you can refer this documentation on solving linear differential equations. Hope it will help!

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by