Skip to content

Instantly share code, notes, and snippets.

@Tarrasch
Created September 28, 2011 07:46
Show Gist options
  • Save Tarrasch/1247267 to your computer and use it in GitHub Desktop.
Save Tarrasch/1247267 to your computer and use it in GitHub Desktop.
F1=@(x,y) y.^2-x.^2; F2=@(x,y) 2-x+y;
% F1=@(x,y) x; F2=@(x,y) y;
x=linspace(-2,2,20);y=linspace(-2,2,21);
[X,Y]=meshgrid(x,y);
quiver(X,Y,F1(X,Y),F2(X,Y))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment