How to plot the electric field in 3D?

I want to draw the electric field lines in 3D. However I have the following Data:
  1. - Ex (nx1): the electric field in the X direction as a vector data.
  2. - Ex (nx1): the electric field in the Y direction as a vector data.
  3. - Ez (nx1): the electric field in the Z direction as a vector data.
  4. - X (nx1) the x coordination of the charges position.
  5. - Y (nx1) the y coordination of the charges position
  6. - Z (nx1) the z coordination of the charges position
By the way, n=10,000
" streamline" command requires 3D matrices which gives me ' out of memory'
Thank you for your kind help:)

Réponses (1)

X.-X. Liang
X.-X. Liang le 5 Déc 2018

0 votes

quiver3
3-D quiver or velocity plot

Catégories

En savoir plus sur Vector Fields dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by