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))
Best Answer