dsolve(diff(X,t) not working for 3x3 matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
the following code not working for 3x3 matrix , can only work for 2x2 , please help what is the error for solving 3 x3 ?
A=[ -0.12 0.05 0.05 ;0.1 -0.1 0; 0.02 0.05 -0.05 ]
syms x
syms x(t) y(t);
X = [x; y; b];
b = 0;
[Sx, Sy, Sz] = dsolve(diff(X,t) == A*X + b)
0 Kommentare
Antworten (1)
Walter Roberson
am 28 Sep. 2021
A=[ -0.12 0.05 0.05 ;0.1 -0.1 0; 0.02 0.05 -0.05 ]
syms x
syms x(t) y(t) z(t);
b = 0;
X = [x; y; z];
eqn = diff(X,t) == A*X + b
[Sx, Sy, Sz] = dsolve(eqn)
2 Kommentare
Walter Roberson
am 28 Sep. 2021
I ran the code right here in MATLAB Answers, which uses Livescript . Livescript automatically formats symbolic expressions.
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



