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:)

Answers (1)

X.-X. Liang
X.-X. Liang on 5 Dec 2018
quiver3
3-D quiver or velocity plot

Categories

Asked:

on 17 Jul 2016

Answered:

on 5 Dec 2018

Community Treasure Hunt

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

Start Hunting!