phase plotting symbolic system of equations (using ezplot and dsolve)
Show older comments
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))
Accepted Answer
More Answers (0)
Categories
Find more on Equation Solving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!