Skip to content

Instantly share code, notes, and snippets.

@Tarrasch
Created September 28, 2011 07:46
Show Gist options
  • Save Tarrasch/1247265 to your computer and use it in GitHub Desktop.
Save Tarrasch/1247265 to your computer and use it in GitHub Desktop.
F1=@(x,y,z) x-1; F2=@(x,y,z) 2.*z; F3=@(x,y,z) -y;
x=linspace(0,3,11);
y=linspace(1,4,10);
z=linspace(-2,2,10);
[X,Y,Z]=meshgrid(x,y,z);
quiver3(X,Y,Z,F1(X,Y,Z),F2(X,Y,Z),F3(X,Y,Z))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment