• Remix
  • Share
  • New Entry

  • Yoshio

  • /
  • Coulomb Charge in 3D

on 12 Oct 2021
  • 4
  • 16
  • 0
  • 0
  • 279
c=.1;
x=-c:c/40:c;
[X,Y,Z]=meshgrid(x,x,x);
d=4*pi*(9e-12)*sqrt(X.^2+Y.^2+Z.^2+eps);
V=log(2e-19*d.^-1);
xs=[0,c];
zs=[-c,0];
h=slice(X,Y,Z,V,xs,xs,zs);
caxis([min(V(:)) -16.2])
set(h,'EdgeColor','none','FaceColor','interp','FaceAlpha','interp')
alpha('color')
alphamap('increase',.3)
axis equal off
Image
Remix Tree