• Remix
  • Share
  • New Entry

on 7 Oct 2021
  • 2
  • 24
  • 0
  • 0
  • 169
[x,y]=meshgrid(-20:.3:20,-20:.3:20);
Fx=sin(x)-cos(y);
Fy=cos(x)-sin(y);
quiver(x,y,Fx,Fy)
D=divergence(x,y,Fx,Fy);
hold on
contour(x,y,D,"LineWidth",2,"LineColor","auto")
axis off
Remix Tree