phase plotting symbolic system of equations (using ezplot and dsolve)
Afficher commentaires plus anciens
I'm trying to phase-plot (xsol by ysol) my system of odes:
% the uncoupled linear system
syms x(t) y(t)
A=diag([-1,2]); % creates diagonal matrix
Y = [x; y];
odes = diff(Y) == A*Y;
[xSol(t), ySol(t)] = dsolve(odes);
xSol(t) = simplify(xSol(t))
ySol(t) = simplify(ySol(t))
ezplot(xSol(t),ySol(t))
but i get this error:
Error using sym/ezplot (line 53)
One parameter is expected when plotting a curve.
Error in equations (line 24)
ezplot(xSol(t),ySol(t))
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Common Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
