How do i plot a single trajectory on a quiver plot?
Show older comments
If i have a phase portrait of a 2d dynamical system made using a quiver plot, on a mesh grid. And I want to see what happens if I state a point on the edge of the grid and see the trajectory as it passes through the system. This the code so far: >> [x,y]=meshgrid(-0.1:0.01:0.1,-0.1:0.01:0.1); >> ydot=3*x-4*y; >> xdot=x-2*y; >> quiver(x,y,xdot,ydot) </matlabcentral/answers/uploaded_files/40453/Matlb.jpg> This is it:
Answers (0)
Categories
Find more on Vector Fields 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!