I used the quiver function to plot the vector fields of a simple uncoupled linear system,
[x1, x2] = meshgrid(-.5:0.05:0.5, -.5:.05:.5); x1dot = - x1; x2dot = 2*x2; quiver(x1,x2,x1dot,x2dot)
Got this figure
Tried to add streamline function to obtain trajectories to no effect,
[x1, x2] = meshgrid(-.5:0.05:0.5, -.5:.05:.5); x1dot = - x1; x2dot = 2*x2; quiver(x1,x2,x1dot,x2dot) hold on startx = -0.4:0.05:0.5; starty = ones(size(startx)); streamline(x1,x2,x1dot,x2dot,startx,starty)
Any suggestions would be helpful!
Best Answer