Quiver Plot only shows vertical vectors
Mostra commenti meno recenti
Code:
[x,y] = meshgrid(-10:1:10,-10:1:10);
dx = 1;
dy = y*(3-(x*y));
r = ( dx.^2 + dy.^2 ).^0.5;
u = dx./r;
v = dy./r;
figure
quiver(x,y,u,v);
Problem:
My quiver plot is only showing vertical vectors. 

I have tried making the x variable dynamic, which just leads to a messed up graph.
I do not know why my code is wrong...
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Vector Fields in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!