3D vector field plotting

Hi everyone

Despite reading the online help, I till can't seem to get the hang of plotting a 3D vector field in Matlab (or Mathematica).

The arrays I have are as follows:

x-component of positions of where I want cone/arrow to be plotted
y-component of positions of where I want cone/arrow to be plotted
z-component of positions of where I want cone/arrow to be plotted
x-component of vector
y-component of vector
z-component of vector

Any help for plotting this in Matlab/Mathematica/anything else for that matter, is greatly appreciated. Thanks.

Comments

  • I'm not sure if this is what you need, but...

    % the line goes from (-1, 3, 1) to (0, 0, 0)
    a = linspace(-1,0,10);
    b = linspace(3,0,10);
    c = linspace(1,0,10);
    plot3(a, b, c)

    I suggest you see this:
    http://www.matrixlab-examples.com/3D-plot-part3.html

  • No that's not really what I meant.

    I'd like to make a plot which looks like the example given in the help for the 'coneplot' function on the MATlab pages, but without any of the colour that's included in the example.

    Thanks anyway.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories